SSL Broken Pipe

前端 未结 3 1652
感动是毒
感动是毒 2020-12-31 10:19

I make POST requests in my application and somtimes (if i have a huge amount of Post data), the following error occured:

avax.net.ssl.SSLException: Wr

3条回答
  •  别那么骄傲
    2020-12-31 10:45

    I had got the same error. The problem is in the Android library where is use DefaultHttpClient has been around since Android API level 1 and AndroidHttpClient has been available since Android API level 8. This is bug in android https://code.google.com/p/android/issues/detail?id=8625

    My problem was: The default timeout is 60 seconds. When I ran the connection in the Wireshark. It was created handshake and he has been waiting on the ApplicationData, but he didn't get it so after timeout send FIN and I have got :javax.net.ssl.SSLException: Write error: ssl=0x2f0610: I/O error during system call, Broken pipe.

    I resolved my problem problem setting timeout the http connection on the 5 minutes or something value is longer than 60second. If I can recommended how resolve your problem run on the server Wireshark and listening the comunication with mobile device.

提交回复
热议问题