Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[APIS-955] fix CLOSET_SOCKET macro #65

Merged
merged 3 commits into from
Jun 23, 2023
Merged

[APIS-955] fix CLOSET_SOCKET macro #65

merged 3 commits into from
Jun 23, 2023

Conversation

kisoo-han
Copy link
Contributor

@kisoo-han kisoo-han commented Jun 23, 2023

http://jira.cubrid.org/browse/APIS-955

Description

  • When a cci handle is returned, hm_con_handle_free() closes the connected socket associated with the cci handle.
  • If the socket descriptor associated with the cci handle is a value other than -1, the connection is closed regardless of whether it was created by another thread.
  • When net_connect_srv () received negative answer from the CAS, it should not only close that connection, but also set the sd connected to the relevant cci handle to -1 (INVALID_SOCKET).
  • If not, a socket created by another thread could be closed.

@kisoo-han kisoo-han self-assigned this Jun 23, 2023
@kisoo-han kisoo-han requested a review from airnet73 June 23, 2023 03:49
@kisoo-han kisoo-han merged commit d22ad76 into CUBRID:develop Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants