Merge pull request #1707 from nghttp2/fix-nghttpd-tls-read-stall
nghttpd: Fix TLS read stall
This commit is contained in:
commit
c8a032b6f4
|
@ -749,6 +749,7 @@ int Http2Handler::read_tls() {
|
||||||
|
|
||||||
ERR_clear_error();
|
ERR_clear_error();
|
||||||
|
|
||||||
|
for (;;) {
|
||||||
auto rv = SSL_read(ssl_, buf.data(), buf.size());
|
auto rv = SSL_read(ssl_, buf.data(), buf.size());
|
||||||
|
|
||||||
if (rv <= 0) {
|
if (rv <= 0) {
|
||||||
|
@ -778,8 +779,7 @@ int Http2Handler::read_tls() {
|
||||||
}
|
}
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return write_(*this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int Http2Handler::write_tls() {
|
int Http2Handler::write_tls() {
|
||||||
|
|
Loading…
Reference in New Issue