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.
This commit is contained in:
parent
ac1cc56fbb
commit
76a97b9718
|
@ -327,6 +327,8 @@ int ClientHandler::write_tls() {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
update_last_write_time();
|
||||||
|
|
||||||
if (rv < 0) {
|
if (rv < 0) {
|
||||||
auto err = SSL_get_error(ssl_, rv);
|
auto err = SSL_get_error(ssl_, rv);
|
||||||
switch (err) {
|
switch (err) {
|
||||||
|
@ -352,7 +354,6 @@ int ClientHandler::write_tls() {
|
||||||
wlimit_.drain(rv);
|
wlimit_.drain(rv);
|
||||||
|
|
||||||
update_warmup_writelen(rv);
|
update_warmup_writelen(rv);
|
||||||
update_last_write_time();
|
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue