============ Problem Description ============
Recently made an Android application, testing found that if through the WiFi connection often time out, but with 3G network connection sometimes very slow, but rarely time out, the connection with the HttpClient post method, the server is TOMCAT7, database Oracle, connection C3P0 connection pool, Does anyone know what it is?
The server connection time-out has been adjusted, or has little effect.
============ Solution 1============
Timeout you want to judge when the server receives the time of the post, is the server receive a problem or send a problem
============ Solution 2============
WiFi LAN, is not the problem of network settings?
============ Solution 3============
WiFi LAN, is not the problem of network settings?
============ Solution 4============
When the httpclient is connected, there are about three timeouts. The first connection pool to fetch a connection, the second is the client to the server connection time, the third is the service side response time. If you use 3G no problem, I feel about the WiFi network client to the server connection timeout, can be connected to catch a bit of an exception, to see if it is connecttimeout-exception ... or set Httpconnectionparams.setconnectiontimeout to a long time:
The above can try ...
Android over WiFi connection often times out