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

persistent connections

From: Maria ANGI/HCM/97S <e_mangi@utila.ifi.uni-klu.ac.at>
Date: Tue, 3 Jun 1997 10:27:24 +0200
Message-Id: <199706030827.KAA17520@ischia.ifi.uni-klu.ac.at>
To: www-jigsaw@w3.org

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());

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 know that HTTP/1.1 tries to make persistent connections. I didn't know what 
I have missed from my implementation.
Could somebody help me?

Angi Maria
Received on Tuesday, 3 June 1997 04:26:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:31 UTC