net/spdy: align Fast Open guard with QuicProxyClientSocket
Behavior-identical rewording: the guard only observes OK or negative results in OnIOComplete(), so rv < 0 and rv != OK are equivalent and the pending-read skip is unchanged. Both proxy client sockets now share the same guard block.pull/827/head
parent
f318b76a4c
commit
272501d2c2
|
|
@ -322,9 +322,11 @@ void SpdyProxyClientSocket::OnIOComplete(int result) {
|
|||
int rv = DoLoop(result);
|
||||
if (rv != ERR_IO_PENDING) {
|
||||
if (use_fastopen_ && read_headers_pending_ == false) {
|
||||
if (rv < 0)
|
||||
if (rv != OK)
|
||||
next_state_ = STATE_DISCONNECTED;
|
||||
if (!read_callback_ || rv == OK) return;
|
||||
if (read_callback_ && rv != OK)
|
||||
std::move(read_callback_).Run(rv);
|
||||
return;
|
||||
}
|
||||
std::move(read_callback_).Run(rv);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue