9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: dexen deVries <dexen.devries@gmail.com>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: Re: [9fans] 9ttp
Date: Thu,  8 Sep 2011 11:09:41 +0200	[thread overview]
Message-ID: <201109081109.42824.dexen.devries@gmail.com> (raw)
In-Reply-To: <CANPzgjQtY-sAu9ufeB6=S7iV0_WzOvKHjEZ4Q2W0bcAXpdjY9w@mail.gmail.com>

On Thursday 08 of September 2011 10:36:00 s s wrote:
> With 9p's ability to send and receive arbitrary information as file i/o,
> does http remain "necessary"?
> 
> Is there any reason that 9p cannot do this ...


http works around high latency by packing as much information as sensible in 
one request, one response. http does not perform step-by-step hierarchy 
traversal, instead specifies whole pathname at once. http takes just one 
request/response to list whole directory (or similar). you need TCP (or 
similar) setup -- say, three packets, then one packet request (+ACK), one or 
few packets response (+ACK) and connection teardown.

9p seems to assume the latency is low enough to perform all both pathname and 
file operations separately.

you could create a 9p->http->9p bridge to work around high-latency links; it 
would gather a bunch of 9p operations: pathname traversal, file open, file read 
(sending locally fake `T' 9p responses to indicate success in spite of not 
doing any real work). it would then push them on-the-wire with just one http 
request. on the other end, the other process would issue locally several 9p 
requests to gather necessary data and respond with an usual http response -- 
which would get translated to Tread by the originating bridge process.

could get a bit hairy for writes.

-- 
dexen deVries

[[[↓][→]]]

For example, if the first thing in the file is:
   <?kzy irefvba="1.0" rapbqvat="ebg13"?>
an XML parser will recognize that the document is stored in the traditional 
ROT13 encoding.

(( Joe English, http://www.flightlab.com/~joe/sgml/faq-not.txt ))



  parent reply	other threads:[~2011-09-08  9:09 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-08  8:36 s s
2011-09-08  8:51 ` hiro
2011-09-08 16:21   ` David Leimbach
2011-09-08  9:09 ` dexen deVries [this message]
2011-09-08  9:17   ` Steve Simon
2011-09-08  9:22   ` dexen deVries
2011-09-08 12:34     ` hiro
     [not found] ` <CAFSF3XN_NcKfMzugkhoj2CTaBF6Gfdke0XstEjPqcjr9FswpPw@mail.gmail.c>
2011-09-08 12:54   ` erik quanstrom
2011-09-08 13:04     ` dexen deVries
2011-09-08 16:24       ` David Leimbach
     [not found]       ` <CAJJ04x7xC4iuqm0HOzKN-Jb3FSmg8w1E+1Lc06pYaOm_diBNsQ@mail.gmail.c>
2011-09-08 16:31         ` erik quanstrom
2011-09-08 16:56           ` John Floren
2011-09-08 16:59             ` ron minnich
2011-09-08 17:18               ` David Leimbach
     [not found]             ` <CAP6exYJSScKcavDvR55KqJyG5-GphLQxV_+-WuwzgU3CH0pV8w@mail.gmail.c>
2011-09-08 17:20               ` erik quanstrom
2011-09-08 17:28                 ` EBo
2011-09-08 19:44             ` Bakul Shah
2011-09-08 20:14               ` John Floren
2011-09-08 20:35                 ` Bakul Shah
2011-09-08 20:43                   ` Francisco J Ballesteros
2011-09-08 22:49                     ` Bruce Ellis
2011-09-08 23:19                       ` Venkatesh Srinivas
2011-09-08 23:29                         ` ron minnich
2011-09-08 23:48                           ` Venkatesh Srinivas
2011-09-09  0:18                       ` Eric Van Hensbergen
     [not found]                   ` <CAP6exYKARAZWWWXfK6myj+y47k3XmNnyF4z17zuHOZHczxDOhw@mail.gmail.c>
2011-09-08 23:32                     ` erik quanstrom
2011-09-08 23:51                       ` Venkatesh Srinivas
2011-09-09  8:13                         ` Charles Forsyth
2011-09-09  9:26                           ` Bruce Ellis
2011-09-09  9:36                             ` dexen deVries
2011-09-09 11:26                               ` Bruce Ellis
2011-09-08 20: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=201109081109.42824.dexen.devries@gmail.com \
    --to=dexen.devries@gmail.com \
    --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).