DescriptionDNS: Don't spin on unexpected EOF reading TCP response
DnsTCPAttempt doesn't handle when read returns 0, which is EOF.
It keeps reading over and over, which will peg the CPU.
Fix it so it stops reading with ERR_CONNECTION_CLOSED,
and add unit tests for both ways the connection can close.
BUG=393923
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=287456
Patch Set 1 #Patch Set 2 : rebase #Patch Set 3 : Add unit tests, remove histograms #
Total comments: 6
Patch Set 4 : Refactor state machine. #
Total comments: 4
Patch Set 5 : Fix one last comment nit #Messages
Total messages: 12 (0 generated)
|