Hi all, I've just pushed two changes to the git repository master branch:
First, a set of patches to push the request handling to worker threads, as previously discussed on this list. Currently it defaults to 4 threads, but that's configurable by way of a new max_threads global option. Note: the number of threads is per process, so if you have many clients all of whom run four threads... I might need to revisit that. At any rate, it reduces the "mainloop" function from a monster 164 lines long to a much more manageable size. This might, however, be due to the fact that I might've forgotten to copy some things here or there. The old mainloop is still there, but I plan to throw it out some time soon, unless there are some major issues with this implementation. Second, I've also implemented the nbdtab format that I suggested late last month. I've changed the idea from having command-line options in nbdtab to having actual words there, because otherwise things would not be very readable (and parsing that with getopt in the current state of nbd-client is... well) Anyone care to review the changes? Especially the nbd-server bits would be useful. It does pass the test suite, but I might have made some silly mistake, and/or the changes that I've done might not really work out in some real-life scenarios. Thanks, -- It is easy to love a country that is famous for chocolate and beer -- Barack Obama, speaking in Brussels, Belgium, 2014-03-26
signature.asc
Description: PGP signature
------------------------------------------------------------------------------
_______________________________________________ Nbd-general mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nbd-general
