W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 1997

persistent connections

From: Anselm Baird_Smith <abaird@www43.inria.fr>
Date: Tue, 3 Jun 1997 11:50:38 +0200 (MET DST)
Message-Id: <199706030950.LAA26722@www43.inria.fr>
To: e_mangi@utila.ifi.uni-klu.ac.at (Maria ANGI/HCM/97S)
Cc: www-jigsaw@w3.org
Maria ANGI writes:
 > Hi!
 > 
 > I have implemented a simple myHttpURLConnection similar to HttpURLConnection
 > from the source code. It tries to make connection with another httpd server.
 > The core of it , it is:
 > ________________________________
 > socket=new Socket(inetaddr,port);
 > output= new BufferedOutputStream(socket.getOutputStream());
 > input=new BufferedInputStream(socket.getInputStream());
 > request.emit(output);
 > ...
 > reply=(Reply)parser.parse();
 > _______________________________
 > 
 > 
 > Everything goes fine I have received the reply.
 > I didn't close the connection. But the remote server got an exception:
 > 
 > w3c.www.http.HttpParserException: End Of File
 > 	at w3c.www.http.HttpRequestMessage.notifyBeginParsing(HttpRequestMessage.java)
 > 	at w3c.www.mime.MimeParser.parse(MimeParser.java:179)
 > 	at w3c.jigsaw.http.Client.getNextRequest(Client.java:246)
 > 	at w3c.jigsaw.http.Client.startConnection(Client.java:442)
 > 	at w3c.jigsaw.http.socket.SocketClient.run(SocketClient.java:107)
 > 	at w3c.util.CachedThread.run(ThreadCache.java)

I guess you're using the trace mode. In that case, the trace is the
bug (Jigsaw is just detecting that the client has closed the
connection, and as a consequence, cleanup any state associated with
it).

Again, the trace is the bug ;-)

Anselm.
Received on Tuesday, 3 June 1997 05:51:11 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 9 April 2012 12:13:26 GMT