DescriptionStop attempting to write to transport sockets in NSS on failure.
On failure, future transport writes should synchronously return. This is
important on Chrome OS and Linux where we have a separate NSS task runner.
If we query the transport each time (in hopes that it will return the error
code) it becomes an asynchronous error and so the state machine keeps pumping
itself in response to the state change. (It alternates between "write pending"
and "write failed".)
Add a test that asserts we do not keep trying to write to the transport in a
loop.
This fixes one of the infinite loops in bug #381160, but not the other.
BUG=381160
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=278014
Patch Set 1 #Patch Set 2 : document CountingStreamSocket (try jobs on patch set 1) #
Total comments: 10
Patch Set 3 : wtc comments #Patch Set 4 : rsleevi comments #
Total comments: 11
Patch Set 5 : more comments #
Total comments: 2
Patch Set 6 : Update ssl_server_socket_nss.cc #
Messages
Total messages: 19 (0 generated)
|