nghttpx: Fix TLS write limit does not work
This commit is contained in:
parent
53a41c953d
commit
3c5ca63b6f
|
@ -488,7 +488,7 @@ ClientHandler::ClientHandler(struct ev_loop *loop, int fd, SSL *ssl,
|
||||||
rlimit_(loop, &rev_, get_config()->read_rate, get_config()->read_burst),
|
rlimit_(loop, &rev_, get_config()->read_rate, get_config()->read_burst),
|
||||||
loop_(loop), dconn_pool_(dconn_pool), http2session_(nullptr),
|
loop_(loop), dconn_pool_(dconn_pool), http2session_(nullptr),
|
||||||
http1_connect_blocker_(nullptr), ssl_(ssl), worker_stat_(worker_stat),
|
http1_connect_blocker_(nullptr), ssl_(ssl), worker_stat_(worker_stat),
|
||||||
last_write_time_(0), warmup_writelen_(0),
|
last_write_time_(0.), warmup_writelen_(0),
|
||||||
left_connhd_len_(NGHTTP2_CLIENT_CONNECTION_PREFACE_LEN),
|
left_connhd_len_(NGHTTP2_CLIENT_CONNECTION_PREFACE_LEN),
|
||||||
tls_last_writelen_(0), tls_last_readlen_(0), fd_(fd),
|
tls_last_writelen_(0), tls_last_readlen_(0), fd_(fd),
|
||||||
should_close_after_write_(false), tls_handshake_(false),
|
should_close_after_write_(false), tls_handshake_(false),
|
||||||
|
|
|
@ -169,7 +169,7 @@ private:
|
||||||
ConnectBlocker *http1_connect_blocker_;
|
ConnectBlocker *http1_connect_blocker_;
|
||||||
SSL *ssl_;
|
SSL *ssl_;
|
||||||
WorkerStat *worker_stat_;
|
WorkerStat *worker_stat_;
|
||||||
int64_t last_write_time_;
|
double last_write_time_;
|
||||||
size_t warmup_writelen_;
|
size_t warmup_writelen_;
|
||||||
// The number of bytes of HTTP/2 client connection header to read
|
// The number of bytes of HTTP/2 client connection header to read
|
||||||
size_t left_connhd_len_;
|
size_t left_connhd_len_;
|
||||||
|
|
Loading…
Reference in New Issue