[
https://issues.apache.org/jira/browse/NUTCH-1342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14182960#comment-14182960
]
Sebastian Nagel commented on NUTCH-1342:
----------------------------------------
Hi [~angela_wang], I also get a timeout for the mentioned URL (both
protocol-http and httpclient on recent trunk) but that's not related:
* the stack is different (it's when reading the response header):
{noformat}
at java.net.SocketInputStream.socketRead0(Native Method)
...
at org.apache.nutch.protocol.http.HttpResponse.readLine(HttpResponse.java:475)
at
org.apache.nutch.protocol.http.HttpResponse.parseStatusLine(HttpResponse.java:389)
at org.apache.nutch.protocol.http.HttpResponse.<init>(HttpResponse.java:211)
...
{noformat}
* disappears if {{http.timeout}} is increased to 30 sec (30000) => looks like
the server responds slowly
> Read time out protocol-http
> ---------------------------
>
> Key: NUTCH-1342
> URL: https://issues.apache.org/jira/browse/NUTCH-1342
> Project: Nutch
> Issue Type: Bug
> Components: protocol
> Affects Versions: 1.4, 1.5
> Reporter: Markus Jelsma
> Assignee: Markus Jelsma
> Fix For: 1.10
>
> Attachments: NUTCH-1342-1.6-1.patch
>
>
> For some reason some URL's always time out with protocol-http but not
> protocol-httpclient. The stack trace is always the same:
> {code}
> 2012-04-20 11:25:44,275 ERROR http.Http - Failed to get protocol output
> java.net.SocketTimeoutException: Read timed out
> at java.net.SocketInputStream.socketRead0(Native Method)
> at java.net.SocketInputStream.read(SocketInputStream.java:129)
> at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
> at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
> at java.io.FilterInputStream.read(FilterInputStream.java:116)
> at java.io.PushbackInputStream.read(PushbackInputStream.java:169)
> at java.io.FilterInputStream.read(FilterInputStream.java:90)
> at
> org.apache.nutch.protocol.http.HttpResponse.readPlainContent(HttpResponse.java:228)
> at
> org.apache.nutch.protocol.http.HttpResponse.<init>(HttpResponse.java:157)
> at org.apache.nutch.protocol.http.Http.getResponse(Http.java:64)
> at
> org.apache.nutch.protocol.http.api.HttpBase.getProtocolOutput(HttpBase.java:138)
> {code}
> Some example URL's:
> * 404 http://www.fcgroningen.nl/tribunenamen/stemmen/
> * 301 http://shop.fcgroningen.nl/aanbieding
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)