Hello everyone,
I found a problem in HTTPRequest.java. Inside the mehtod public HTTPResponse post(String host, int port, boolean isKeepAlive). I think the setting timeout too late, and it should not set after the postSocket = new Socket(host, port); I read the jdk source code, when the socket is created with address and port, the connection will be automatically established. So I think the timeout should be set before socket connecting. Am I right? Thanks for any tips and help.
Cheers,
Hao
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everyone,
I found a problem in HTTPRequest.java. Inside the mehtod public HTTPResponse post(String host, int port, boolean isKeepAlive). I think the setting timeout too late, and it should not set after the postSocket = new Socket(host, port); I read the jdk source code, when the socket is created with address and port, the connection will be automatically established. So I think the timeout should be set before socket connecting. Am I right? Thanks for any tips and help.
Cheers,
Hao
Hi Hao
I have changed as the following.
http://cgupnpjava.svn.sourceforge.net/viewvc/cgupnpjava/trunk/cyberlink/upnp-stack/src/main/java/org/cybergarage/http/HTTPRequest.java?r1=157&r2=167
Please check it :-)
Best Regards,
Satoshi Konno