I've got a problem with my application when I make a number of requests using the HttpsUrlConnection class.
My program makes the first request using the HttpsUrlConnection class to retrieve a file. It then makes a second request to the same server to retrieve a different file. What happens however is that periodically I'm getting a -1 HTTP response code on the connection. When the failure occurs between the two requests I see the following line of trace in logcat: D/OpenSSLSessionImpl( 699): Freeing OpenSSL session This seems to happen fairly consistently. If I retry the second request after it has failed it generally works and I get the requested file from the server. Note that if I don't see the OpenSSL session being freed the second request works fine the first time. Some other information: 1) I'm not calling disconnect on the connection 2) I'm don't always read the entire file from the server after the first request 3) I always close the InputStream in the event that I get an InputStream on the first connection Any information or advice about how to prevent the OpenSSL session from being freed is much appreciated. Thanks Lee -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en To unsubscribe from this group, send email to android-developers+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

