Summary: | close(socket) needed to avoid socket resource leakage | ||
---|---|---|---|
Product: | [IoT] 4DIAC | Reporter: | xin zhao <zhaoxin> |
Component: | FORTE | Assignee: | Project Inbox <4diac-inbox> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | major | ||
Priority: | P3 | CC: | alois.zoitl, martin.melik |
Version: | unspecified | ||
Target Milestone: | 2.0.1 | ||
Hardware: | PC | ||
OS: | Windows 10 | ||
See Also: |
https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.forte/+/186579 https://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git/commit/?id=265fb822d1bf433d1e368e741f1af0dee2356050 |
||
Whiteboard: |
Description
xin zhao
2021-10-11 01:32:27 EDT
besides, I checked the couterpart of bsd socket realization and there is close(socket) at the similar postion. Hi. Good spot, the socket should be closed there also. One comment, for WinSock the function to close a socket is closesocket (all lower case) https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-closesocket Best regards, Martin yes, (In reply to Martin Melik-Merkumians from comment #2) > Hi. > > Good spot, the socket should be closed there also. > One comment, for WinSock the function to close a socket is closesocket (all > lower case) > > https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock- > closesocket > > Best regards, > Martin yes, Martin, thanks for the information. Somebody made a function in win32socketinterf.cpp called closeSocket and inside it calls closesocket. :) New Gerrit change created: https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.forte/+/186579 Gerrit change https://git.eclipse.org/r/c/4diac/org.eclipse.4diac.forte/+/186579 was merged to [2.0.x]. Commit: http://git.eclipse.org/c/4diac/org.eclipse.4diac.forte.git/commit/?id=265fb822d1bf433d1e368e741f1af0dee2356050 |