Problem with ReadTimeout in SunHttpTransport

View: New views
2 Messages — Rating Filter:   Alert me  

Problem with ReadTimeout in SunHttpTransport

by Mikhail Sarychev :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In XmlRpcSunHttpTransport ReadTimeout don't work! For repair this problem, need add one string in sendRequest function in XmlRpcSunHttpTransport.java:

final URLConnection c = conn = newURLConnection(config.getServerURL());
c.setReadTimeout(config.getReplyTimeout());  // need add this string !!!
c.setUseCaches(false);

Please, add it in next release.

With best regards,
Mikhail Sarychev,
Magic World, ltd


Re: Problem with ReadTimeout in SunHttpTransport

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Isn't that already in? See

    http://www.nabble.com/svn-commit:-r813462---in--webservices-xmlrpc-trunk:-client-src-main-java-org-apache-xmlrpc-client-XmlRpcSun15HttpTransport.java-pom.xml-src-changes-changes.xml-td25384668.html


2009/10/8 Mikhail Sarychev <Mike@...>:

> In XmlRpcSunHttpTransport ReadTimeout don't work! For repair this problem, need add one string in sendRequest function in XmlRpcSunHttpTransport.java:
>
> final URLConnection c = conn = newURLConnection(config.getServerURL());
> c.setReadTimeout(config.getReplyTimeout());  // need add this string !!!
> c.setUseCaches(false);
>
> Please, add it in next release.
>
> With best regards,
> Mikhail Sarychev,
> Magic World, ltd
>
>



--
Germanys national anthem is the most boring in the world - how telling!