[rfc][icedtea-web] Check online detection even if checked before
Jie Kang
jkang at redhat.com
Mon Jan 5 16:19:21 UTC 2015
Hello,
This patch slightly modifies JNLPRuntime's online detection function to always perform the check, even if it has been called before.
Previously, if the boolean onlineDetected wasn't null, the check would be skipped. This caused a bug when downloading multiple resources.
For each resource being downloaded, we perform the detection check. For two consecutive resources: If for the first resource, we detected offline, the boolean onlineDetected would be set to false. Then for the second resource, the detection check would be skipped, even if that resource was able to be connected to. This would result in the second resource being unable to be downloaded, even though it definitely could and should be. The patch fixes this.
Thoughts?
Regards,
--
Jie Kang
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itw-online-detect-1.patch
Type: text/x-patch
Size: 552 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20150105/a92416dd/itw-online-detect-1.patch>
More information about the distro-pkg-dev
mailing list