On Wed, 2007-04-25 at 18:42 -0400, Chris King wrote: > On 4/24/07, skaller <[EMAIL PROTECTED]> wrote: > > Tarball for 1.1.3_rc4 is now up. Please test! > > Build OK on Debian 4.0 / x86. Webserver also works; I get 100MByte/s > on a 20MB file with wget. (I checked the output with cmp.)
Well, the transfer rate for one file isn't interesting, since I'm using 100,000 byte buffers which is HUGE and quite unreasonable -- that was just for testing: the xfer speed will be entirely up to the OS. What we need is to examine simultaneous requests with the server running on a multi-core box, and compare it with Apache. However the current webserver *deliberately* does not do sensible things: it doesn't support Keep-Alive connections, it doesn't support subrange requests, and it doesn't tell the size of the file. This brain-dead HTTP handling is deliberate since it is the fallback, and is how pages generated by scripts would have to be handled sometimes. We're actually just trying to test the demux/async I/O system here. > Note there's a slight bug in the webserver code, the headers have an > extra newline prepended to them, causing wget to spit out the header > along with the rest of the file. Removing the newline after the > opening triple-quote fixes this problem. Nicely found! I wondered about that .. It opens up the issue of what to do with string literals. In Python it is very painful, because the literals don't support nice block indent style. In this case .. attempts to make the code look nice turn out to cause a bug. AFAICR trailing whitespace is elided (because you can't see it). Thus """hello """ will be 'hello\n' even if you put extra ' ' after hello. If you put """hello \ """ it adds the white space .. but removes the \n ... ;( Not very consistent.. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language