diff options
| author | Arseny Smirnov <arseny30@gmail.com> | 2020-07-24 18:49:33 +0300 |
|---|---|---|
| committer | Arseny Smirnov <arseny30@gmail.com> | 2020-07-24 18:49:33 +0300 |
| commit | 47d2e8276a36cb15388f78d203c152571be037f1 (patch) | |
| tree | 59621dc6f18e2a780bb452f9467254e44ba16838 /tdnet/td/net/HttpConnectionBase.cpp | |
| parent | 421ec5fa8f96e88fbe0df555b8d5f48654b59277 (diff) | |
SslStream: fix ByteFlow logic
GitOrigin-RevId: 37e5ecd1480e0bb3035ea5ce0f10261cedfd1612
Diffstat (limited to 'tdnet/td/net/HttpConnectionBase.cpp')
| -rw-r--r-- | tdnet/td/net/HttpConnectionBase.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tdnet/td/net/HttpConnectionBase.cpp b/tdnet/td/net/HttpConnectionBase.cpp index f302a2ff3..3a7e5f261 100644 --- a/tdnet/td/net/HttpConnectionBase.cpp +++ b/tdnet/td/net/HttpConnectionBase.cpp @@ -93,6 +93,10 @@ void HttpConnectionBase::timeout_expired() { stop(); } void HttpConnectionBase::loop() { + if (ssl_stream_) { + //ssl_stream_.read_byte_flow().set_need_size(0); + ssl_stream_.write_byte_flow().reset_need_size(); + } sync_with_poll(fd_); if (can_read_local(fd_)) { LOG(DEBUG) << "Can read from the connection"; |
