styx services with support for concurrent operations
Hi!
I wonder is there any styx service in Inferno with support for concurrent
operations? (The sys->export() support it, of course, but I'm speaking
about services which export own virtual fs - like dossrv or ftpfs.)
There styxflush.m, but it doesn't used by any app.
The styxservers.m has complex enough interface, run (usually) using 3
threads, but... doesn't support concurrent operations (and because of this
it able to use bare Tflush handler).
The ftpfs.b Tflush handler leave no chances it support concurrent requests
too...
I was unable to find even one concurrent styxfs application (i.e. which
able to receive next Tmsg without sending reply to previous Tmsg - and so
support more than one tag at once, handle flushes, etc.). All applications
which able to handle concurrent requests do either sys->file2chan() or
sys->export() and so have Inferno kernel handle concurrency for them.
Actually there a little reason for, say, 9660srv or dossrv or even
keyfs to support concurrent access - they all should be able to serve
incoming requests without delays. But non-concurrent ftpfs?! Or ftpfs
designed to be used in way similar to usual console ftp client (get
file, wait until it downloaded, put file, wait until it uploaded, get
next file, wait...) and not like disk fs (read/write many files
concurrently)?
Maybe I miss something and support for concurrent requests is something
(Continue reading)