Skip to content

Conversation

fpanizza
Copy link
Contributor

Problema:

Issue:
https://issues.genexus.com/viewissue.aspx?104236
Socket is closed al llamar httpclient a partir de offline

Solucion:
Hacer revert de algunos de los cambios en el PR :
#745

Cuando la funcion GetSocket o sendRequest es usada, no cerrar el socket que se utiliza, porque luego es consultado para ver los resultados del httpclient.

Nota: Seguramente hay que liberar el socket al destruir el httpclient o la conexion. Eso no lo toco ahora para evitar otro broken.

@genexusbot
Copy link
Collaborator

Cherry pick to beta success

@fpanizza fpanizza merged commit cc89198 into master Aug 15, 2023
@fpanizza fpanizza deleted the fixSocketClosed branch August 15, 2023 13:24
if (idx == addr_list.length-1)
throw se; // we tried them all
if (LocalAddr == null)
sock = new Socket(addr_list[idx], actual_port);

Check failure

Code scanning / Fortify on Demand

Unreleased Resource: Sockets

The function getSocket() in HTTPConnection.java sometimes fails to release a socket allocated by Socket() on line 3459.The program can potentially fail to release a socket.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants