DescriptionPrevent the infinite loop inside SSLClientSocketNSS::OnSendComplete.
Two fixes are added. 1) We stay in the loop only if we will call
DoPayloadRead or DoPayloadWrite in the next iteration. 2) Don't call
BufferRecv again if BufferRecv has reported EOF before.
Each fix alone prevents the infinite loop. The second fix is less risky.
If necessary, we can go with just the second fix.
R=rsleevi@chromium.org
BUG=127822
TEST=SSLServerSocketTest.WriteAfterPeerClose in net_unittests
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=137485
Patch Set 1 #Patch Set 2 : Fix comments #Patch Set 3 : Add SSLClientSocketOpenSSL fix #
Total comments: 9
Patch Set 4 : Make changes suggested by rsleevi, exclude SSLClientSocketOpenSSL from this CL #
Messages
Total messages: 10 (0 generated)
|