Skip to content

fix(server): free socket timeout invalid operator#409

Merged
bzp2010 merged 1 commit into
mainfrom
bzp/fix-keepalive-timeout-invalid-op
Feb 4, 2026
Merged

fix(server): free socket timeout invalid operator#409
bzp2010 merged 1 commit into
mainfrom
bzp/fix-keepalive-timeout-invalid-op

Conversation

@bzp2010

@bzp2010 bzp2010 commented Feb 4, 2026

Copy link
Copy Markdown
Collaborator

Description

#407 introduced an error: when the environment variable does not exist, it becomes undefined. In this case, parseInt returns NaN, which is still considered a "number" type. Therefore, the ?? operator does not apply to this scenario, as NaN is neither undefined nor null.

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible

@bzp2010 bzp2010 added the test/apisix-standalone Trigger the APISIX standalone test on the PR label Feb 4, 2026
@bzp2010
bzp2010 merged commit 67b4307 into main Feb 4, 2026
42 of 43 checks passed
@bzp2010
bzp2010 deleted the bzp/fix-keepalive-timeout-invalid-op branch February 4, 2026 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test/apisix-standalone Trigger the APISIX standalone test on the PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants