Return-Path: Delivered-To: apmail-jakarta-httpcomponents-dev-archive@www.apache.org Received: (qmail 45331 invoked from network); 5 Dec 2007 13:20:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Dec 2007 13:20:43 -0000 Received: (qmail 11228 invoked by uid 500); 5 Dec 2007 13:20:32 -0000 Delivered-To: apmail-jakarta-httpcomponents-dev-archive@jakarta.apache.org Received: (qmail 11028 invoked by uid 500); 5 Dec 2007 13:20:31 -0000 Mailing-List: contact httpcomponents-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list httpcomponents-dev@jakarta.apache.org Received: (qmail 11019 invoked by uid 99); 5 Dec 2007 13:20:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 05:20:31 -0800 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [62.179.121.47] (HELO viefep27-int.chello.at) (62.179.121.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Dec 2007 13:20:10 +0000 Received: from [192.168.0.63] (really [212.71.105.68]) by viefep27-int.chello.at (InterMail vM.7.08.02.02 201-2186-121-104-20070414) with ESMTP id <20071205132011.ZDNY20841.viefep27-int.chello.at@[192.168.0.63]> for ; Wed, 5 Dec 2007 14:20:11 +0100 Subject: Re: SocketTimeoutExeption in ElementalHttpServer From: Oleg Kalnichevski To: HttpComponents Project In-Reply-To: <47569237.8010504@fit.fraunhofer.de> References: <47569237.8010504@fit.fraunhofer.de> Content-Type: text/plain Date: Wed, 05 Dec 2007 14:20:10 +0100 Message-Id: <1196860810.27075.14.camel@okhost> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Wed, 2007-12-05 at 12:57 +0100, Johannes Koch wrote: > When running the org.apache.http.examples.ElementalHttpServer with Java > 1.4.2_16, I get the following SocketTimeoutException when requesting a > resource with my browser: > > I/O error: Read timed out > java.net.SocketTimeoutException: Read timed out > at java.net.SocketInputStream.socketRead0(Native Method) > at java.net.SocketInputStream.read(SocketInputStream.java:129) > at > org.apache.http.impl.io.AbstractSessionInputBuffer.fillBuffer(AbstractSessionInputBuffer.java:103) > at > org.apache.http.impl.io.AbstractSessionInputBuffer.readLine(AbstractSessionInputBuffer.java:191) > at > org.apache.http.impl.io.HttpRequestParser.parseHead(HttpRequestParser.java:71) > at > org.apache.http.impl.io.AbstractMessageParser.parse(AbstractMessageParser.java:174) > at > org.apache.http.impl.AbstractHttpServerConnection.receiveRequestHeader(AbstractHttpServerConnection.java:141) > at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:135) > at > org.apache.http.examples.ElementalHttpServer$WorkerThread.run(ElementalHttpServer.java:250) > > > In the code only added > > ex.printStackTrace(); > > to the catch block in WorkerThread.run(): > > catch (IOException ex) { > System.err.println("I/O error: " + ex.getMessage()); > } Johannes, I think this is perfectly normal. The ElementalHttpServer shuts down connections after 5 seconds of inactivity. Why do you see this as a problem? Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: httpcomponents-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: httpcomponents-dev-help@jakarta.apache.org