[ee122] Persistent Connection Hanging

vern at cs.berkeley.edu vern at cs.berkeley.edu
Wed Oct 31 04:05:18 PDT 2007

> How about when you request a file that is empty and the client is  
> persistent?

Content-length: 0, or the server just denies the persistent connection
and closes the connection.

> The spec doesn't say if we should tack on anything in the entity.

Right.  This was an omission on our part.  (Note that it's a SHOULD, not
a MUST, in the spec.)

> Not  
> putting anything in the entity will cause the Safari/Firefox to hang.
> Should we add <space><CRLF><CRLF>, or something else?

If you want to implement this, any valid entity will do.  You could for
example return something like like the following (which I took from the
lightweight "thttpd" server):

	HTTP/1.0 404 Not Found
	Content-Type: text/html
	Date: Wed, 31 Oct 2007 11:01:09 GMT
	Last-Modified: Wed, 31 Oct 2007 11:01:09 GMT
	Connection: close

	<HEAD><TITLE>404 Not Found</TITLE></HEAD>
	<H2>404 Not Found</H2>
	The requested URL '/does-not-exist-test' was not found on this server.

- Vern

More information about the ee122 mailing list