Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.6.0
-
None
-
None
-
Android emulator
Description
it seems as if in my conditions the connection gets hung waiting to get an answer that will never arrive.
I enabled the debug mode, this is what I get with
adb logcat FileTransfer:*
D/FileTransfer(10912): upload file:///storage/sdcard/Android/data/com.mywonder.androidApp/cache/1480944997088.png to https://anywebsite.ssl/postuploadEndpoint
D/FileTransfer(10912): fileKey: file
D/FileTransfer(10912): fileName: 1480944997088.png
D/FileTransfer(10912): mimeType: image/png
D/FileTransfer(10912): trustEveryone: true
D/FileTransfer(10912): chunkedMode: true
D/FileTransfer(10912): headers:
D/FileTransfer(10912): objectId: 1
D/FileTransfer(10912): httpMethod: POST
D/FileTransfer(10912): Content Length: 2169
D/FileTransfer(10912): Sent 2169 of 2169
From the code, as few lines after it should print more things, it seems evident that system hangs exactly at the line
int responseCode = conn.getResponseCode();
and never gets out of there.
conn is declared as a HttpURLConnection.
For what I remember I have this problem in production systems only behind a AJP Proxy + SSL made with Apache.
If I connect directly to my endpoint (JaxRS+Wildfly 8.2.1.Final) there's no problem.
Didn't test with HTTP either, but i think it works, it seems more SSL related.
Any Idea?