You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It looks like JDK's HttpURLConnection has unfortunate handling of some error cases, leading to leakage of not-fully-closed HTTP connections under some error conditions. See FasterXML/jackson-databind#3455 for details.
It seems like we might be able to handle some of those cases if we could do something like:
But due to separation of concerns, this cannot (or should not) be done in databind. Instead we could wrap URL-backed InputStream in these cases, delegated all calls except for close(): and in close() we would do disconnect.
The text was updated successfully, but these errors were encountered:
(note: replaces FasterXML/jackson-databind#3520)
It looks like JDK's
HttpURLConnection
has unfortunate handling of some error cases, leading to leakage of not-fully-closed HTTP connections under some error conditions. See FasterXML/jackson-databind#3455 for details.It seems like we might be able to handle some of those cases if we could do something like:
(as suggested by @fxha -- thanks!)
But due to separation of concerns, this cannot (or should not) be done in databind. Instead we could wrap URL-backed
InputStream
in these cases, delegated all calls except forclose()
: and inclose()
we would do disconnect.The text was updated successfully, but these errors were encountered: