-
Notifications
You must be signed in to change notification settings - Fork 2.7k
More tolerance for notifications keep alive timeout #7637
Conversation
romanb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this is mainly an optimisation to avoid closing and re-opening connections or does the right "timing" in this sense actually cause a problem? The latter would be unfortunate, as no choice for the timeout could then guarantee that the problem does not arise, if I understand correctly.
|
Yes, this is intended as an optimization. There is indeed a problem happening, which is why an |
|
bot merge |
|
Waiting for commit status. |
|
Checks failed; merge aborted. |
|
|
|
Of course the test passes on CI if I add logging. |
|
I just ran the test 100 times successfully in a row on my machine. |
|
is this still being worked on? |
|
No, I'm completely clueless as to why CI fails. |
|
closing for a lack of progress. |
I see this situation arising in the logs:
Opento the handler.OpenResultErr.OpenResultErrand immediately tries again by sendingOpenagain.Closedstate after returningOpenResultErr, its keep-alive timeout kicks in and shuts down the connection.While it is questionable to immediately try opening the same connection immediately again it has failed to open, it is clearly not intended that the keep-alive timeout triggers in the millisecond or so during which the handler is very temporarily in the
Closedstate.This PR modifies the tolerance level in order to wait for 5 seconds after entering the
Closedstate, instead of just the first time after opening a connection.