On 8/31/2015 3:02 AM, Oleg Kalnichevski wrote:
> The socket timeout in blocking i/o is handled by the JRE. We have no
> control over it. 
> --- 
> Caused by: java.net.SocketTimeoutException: Read timed out
>         at java.net.SocketInputStream.socketRead0(Native Method)
> ---
> There likely to be something that sets SO_TIMEOUT to a lower value. You
> should be able to trace it by placing a breakpoint or good ol'
> System.out.println at this line:
> http://hc.apache.org/httpcomponents-core-4.4.x/httpcore/xref/org/apache/http/impl/BHttpConnectionBase.html#277
> 
> Naturally it would make things easier if Solr used no deprecated
> methods.

I once tried to work out a patch for Solr to remove deprecated classes
implementing HttpClient.  I quickly got myself bogged down in issues I
didn't know how to fix.  I wasn't even attempting to fix the deeper-down
usage using deprecated methods, just the HttpClient objects themselves.

I'm not sure how to set up a debugging environment with breakpoints, so
I think println is going to be my friend.  Now I need to figure out how
to pull the project into eclipse for editing, and then how to build
httpcore.

Thanks,
Shawn


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to