Commit 76a97b97 authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

nghttpx: Update last_write_time_ after SSL_write

SSL_write may return error indicating blocking until all given data
are written.  Because of this, it is preferable to update
last_write_time_ after SSL_write regardless of its return value.
parent ac1cc56f
......@@ -327,6 +327,8 @@ int ClientHandler::write_tls() {
return -1;
}
update_last_write_time();
if (rv < 0) {
auto err = SSL_get_error(ssl_, rv);
switch (err) {
......@@ -352,7 +354,6 @@ int ClientHandler::write_tls() {
wlimit_.drain(rv);
update_warmup_writelen(rv);
update_last_write_time();
continue;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment