[CBRD-26299] Socket timeout due to incorrect file descriptor used in poll() #6730
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
http://jira.cubrid.org/browse/CBRD-26299
Purpose
cas 에서 사용하는 socket 정의를 두 곳에 선언하고 사용함
이로 인해 read_buffer()의 poll()에서 잘못된 파일 디스크립터를 사용하여 socket timeout (CCI_ER_LOGIN_TIMEOUT) 이 발생함
Implementation
두 곳에 선언되어 있는 socket 선언을 삭제하고, cas_common_vars.c/h 에 선언함
Remarks
https://github.com/CUBRID/cubrid-testcases-private-ex/blob/develop/shell_perf/_06_issues/_23_1h/apis_945/cases/apis_945.sh