eclipse-ee4j / metro-jax-ws

metro-jax-ws
https://eclipse-ee4j.github.io/metro-jax-ws/
BSD 3-Clause "New" or "Revised" License
68 stars 40 forks source link

RuntimeWSDLParser does not close URL InputStream in case of errors #684

Open iamtakingiteasy opened 3 months ago

iamtakingiteasy commented 3 months ago

Affected version: jaxws-rt:4.0.2

In case of http/https URL not returning valid WSDL definition, RuntimeWSDLParser does not close the first URL InputStream opened before trying the same URL with ?wsdl appended, leading to a resource leak, which is typically constant, but can start accumulating in case WSDL definitions are resolved dynamically in runtime.

It can also interfere with bytecode advices around URLConnections.