Closed egorse closed 8 months ago
Dont get whats wrong with TestXPubSub - I ran it only in loop for almost 24h - no single failure
I will try to find way to make test with single pass to hit the deadlock. Please give me couple of days
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
16ca7c0
) 68.19% compared to head (66d39ee
) 68.22%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I think the test is now ready but it might looks more ugly even can repro problem each run. Please comment
Added explicitly running test to detect deadlock. Use
go test -tags=TestConnReaperDeadlockLoop -run ^TestConnReaperDeadlockLoop$
. Be aware the test generate a lot of sockets in TIME_WAIT. Without patch to socket.go it breaks pretty quick on fast and slow machines. With the patch it runs up to default test timeout (10m) but gets slower when there are plenty of sockets in TIME_WAIT.Fixes #149