On 01/11/2010, at 1:07 PM, Jeff Schultz wrote: > On Mon, Nov 01, 2010 at 12:36:56AM +1100, john skaller wrote:
>>> And yes, I get Connection Interrupted reliably for >>> http://184.106.135.43:1234/string. The data sent starts with PAGE NOT >>> FOUND: string and is then interrupted. > >> Can you try again? I have restarted the server with a 20 second delay >> and I don't have any problems now, other than long times to load >> the page .. I'm not sure if this is slicehost being slow, or just my >> wireless internet connection :) > > Same behaviour, now with a 20 second delay between stages. > > If one can trust Mozilla's characterisation of the problem as > > Connection Interrupted > > The document contains no data. > > The network link was interrupted while negotiating a connection. > Please try again. > > it seems that it might apply to some connection other than the > original connection that contains the PAGE NOT FOUND: string error. > That is, the problem may be at the beginning of the transaction, not > the end. > > > Jeff OK, there is a bug in the "page not found 404" response, it is telling the client to load Content-Length: """+str(len(contents)+18)+"""\r \r PAGE NOT FOUND: """+contents+"""\r """; The PAGE NOT FOUND thing is 16 bytes, if you add the CR/LF after the filename that's only 18 bytes + the filename length. That's a bug which would cause a 404 response to hang the client waiting for a non-existent byte. http://184.106.135.43:1234//usr/include/pthread.h because I know that's file is so big it requires multiple sends. It takes a while, but I can load it OK with firefox. With Curl I get a hang sometimes. I can also, I think, do this: curl http://184.106.135.43:1234//usr/include/pthread.h > tmp1.out & 10 times really fast, and all the processes load and terminate. Safari also loads it. However it hangs on "the second item", a request for "favicon.ico". I know firefox tries to get that too. [Yet another example of crap programming: the Safari diagnostic window column for the status isn't big enough to show the full message, the column can only be resized by making the window bigger .. but there's a max size .. grr, doesnt anyone ever test programs anymore?] Hmm .. I can load the pthread.h file but another Safari window trying to load favicon.ico explicitly can't even make a connection :) I I change the name to favicon.flx I get a "can't find it response". BTW: I'm changing the server to serve a 404 instead. Looks to me like Safari is junk. Yeah, if I load a non-existant file now I get a diagnostic message PAGE NOT FOUND, and firefox keeps trying to load the page, finally (after the timeout I guess) I get a connection reset. BTW: the webserver does NOT read the whole of the client's request. It only reads the GET line. I see no workaround because there's no way to KNOW how much has been sent. It takes several seconds for the connection to go through, and varying time for the transfer. I don't have a test case on the site for multiple simultaneous requests, eg a page with lots of images. Actually, the server can't handle many image types at the moment, need to fix that, but I can browse my Python docs locally, they have some images for navigation arrows. Come on lurkers .. more feedback is needed here! [No response (yet) from libcurl people] -- john skaller skal...@users.sourceforge.net ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Felix-language mailing list Felix-language@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/felix-language