9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Giacomo Tesio <giacomo@tesio.it>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] 9p2000 agent supporting multiple clients on a single connection
Date: Tue,  3 Feb 2015 12:34:51 +0100	[thread overview]
Message-ID: <CAHL7psFbqcOFG=8++qVBoKpu+c=JJ_14zwi5BxvTcQNQOTOPLA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1417 bytes --]

While reading intro(5) I noticed these very interesting lines:

Fids are chosen by
the client.  All requests on a connection share the same fid
space; when several clients share a connection, the agent
managing the sharing must arrange that no two clients choose
the same fid.

And later:

A client can send multiple T-messages without waiting for
the corresponding R-messages, but all outstanding T-messages
must specify different tags.  The server may delay the
response to a request and respond to later ones; this is
sometimes necessary, for example when the client reads from
a file that the server synthesizes from external events such
as keyboard characters.


This is a very interesting feature, allowing a sort of proxing at
connection level.
Such a proxy could accept 9P connections on a socket and forward them to a
remote server (after modifying fids and tags so that they are kept unique),
largely improving scalability.
If available, I'd really like to read such code.

BTW, is there any client library that actually enables consumers to send
multiple T-messages without waiting the corresponding R-messages and then
consume responses when they arrive?

All the 9p implementations that I saw were synchronous, allowing only one
client per connection.


Where can I find an implementation of these features?
I guess it would be a really instructive read.


Giacomo

[-- Attachment #2: Type: text/html, Size: 1880 bytes --]

             reply	other threads:[~2015-02-03 11:34 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-03 11:34 Giacomo Tesio [this message]
2015-02-03 13:18 ` Skip Tavakkolian
2015-02-03 13:18   ` erik quanstrom

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAHL7psFbqcOFG=8++qVBoKpu+c=JJ_14zwi5BxvTcQNQOTOPLA@mail.gmail.com' \
    --to=giacomo@tesio.it \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).