Repository: trafficserver Updated Branches: refs/heads/master c36204d5a -> b51a2b977
[TS-3794]: call spdy_process_read on early read from handshake. Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/b51a2b97 Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/b51a2b97 Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/b51a2b97 Branch: refs/heads/master Commit: b51a2b977017d0d94e751d7e2c543d71a457c159 Parents: c36204d Author: Sudheer Vinukonda <[email protected]> Authored: Thu Jul 23 21:51:09 2015 +0000 Committer: Sudheer Vinukonda <[email protected]> Committed: Thu Jul 23 21:51:09 2015 +0000 ---------------------------------------------------------------------- proxy/spdy/SpdyClientSession.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafficserver/blob/b51a2b97/proxy/spdy/SpdyClientSession.cc ---------------------------------------------------------------------- diff --git a/proxy/spdy/SpdyClientSession.cc b/proxy/spdy/SpdyClientSession.cc index 33c87bf..d9db07f 100644 --- a/proxy/spdy/SpdyClientSession.cc +++ b/proxy/spdy/SpdyClientSession.cc @@ -208,13 +208,13 @@ SpdyClientSession::start() {SPDYLAY_SETTINGS_INITIAL_WINDOW_SIZE, SPDYLAY_ID_FLAG_SETTINGS_NONE, spdy_initial_window_size}}; int r; - if (this->write_vio && (TSIOBufferReaderAvail(this->req_reader) > 0)) { - spdy_process_read(TS_EVENT_VCONN_WRITE_READY, this); - } - this->read_vio = (TSVIO) this->vc->do_io_read(this, INT64_MAX, reinterpret_cast<MIOBuffer *>(this->req_buffer)); this->write_vio = (TSVIO) this->vc->do_io_write(this, INT64_MAX, reinterpret_cast<IOBufferReader *>(this->resp_reader)); + if (TSIOBufferReaderAvail(this->req_reader) > 0) { + spdy_process_read(TS_EVENT_VCONN_WRITE_READY, this); + } + SET_HANDLER(&SpdyClientSession::state_session_readwrite); r = spdylay_submit_settings(this->session, SPDYLAY_FLAG_SETTINGS_NONE, entries, countof(entries));
