Connection Leak in JsonFactory.createParser(URL) on HTTP 404 #1461
-
🐞 Bug Report: Connection Leak in JsonFactory.createParser(URL) on HTTP 404 🧩 Description 📄 Code Snippet
🧪 Reproduction Scenario A large number of open connections ✅ Expected Behavior 💡 Suggestion HttpClient (Java 11+) 🧪 Environment |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I thinkJackson relying on HttpClient could create many dependency conflicts. |
Beta Was this translation helpful? Give feedback.
-
This belongs in |
Beta Was this translation helpful? Give feedback.
-
Existing issue #803 seems related. |
Beta Was this translation helpful? Give feedback.
@rahulkantyadav issue exists but it is not implemented
If this issue is a big concern for you, you can avoid all the Jacskon API methods that take URL inputs and use the equivalent methods that take InputStream inputs instead. You can create the InputStream and handle the exceptions that might happen when creating the InputStream.