Skip to content

Conversation

@patterniha
Copy link
Collaborator

@patterniha patterniha commented Jul 19, 2025

#4909 (comment)

because updateActivity() runs out of udpworker-Lock:

suppose exactly after 2 minutes of inactivity a packet is received from inbound, so it is possible we create a new-outbound-connection for that but we don't update udpconn-activity and close that.

this cause we ignore the active-outbound-connection by mistake and create new one for next-received-packet.

///

possible is possible, even with a very low probability.

@patterniha patterniha changed the title fix worker UDP worker: conn.updateActivity() should be executed in Lock Jul 19, 2025
@Fangliding Fangliding closed this Jul 19, 2025
@patterniha
Copy link
Collaborator Author

CC @RPRX

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