]> git.ipfire.org Git - thirdparty/strongswan.git/commit
android: Prevent FD leak from HttpURLConnection
authorTobias Brunner <tobias@strongswan.org>
Fri, 22 Jul 2022 09:43:56 +0000 (11:43 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 21 Sep 2022 13:15:18 +0000 (15:15 +0200)
commit7433f1672a49325eb4e8f2362248828911173da0
treec3a7d57b44dcce02f8b13fbdc2ac393d9d46c48f
parentef68a7056b971037ae54e246c931d4b7e8083d78
android: Prevent FD leak from HttpURLConnection

The default is apparently "Connection: keep-alive", which somehow keeps
the socket around, which leaks file descriptors with every connection
that fetches OCSP and/or CRLs.  Over time that could result in the number
of FDs reaching a limit e.g. imposed by FD_SET().

Closes strongswan/strongswan#1160
src/frontends/android/app/src/main/java/org/strongswan/android/logic/SimpleFetcher.java