nghttpx: Fix typo
This commit is contained in:
parent
7e5567341f
commit
3b7c733246
|
@ -36,6 +36,6 @@
|
|||
#define DIE() \
|
||||
assert(0);
|
||||
|
||||
#define SHRPX_READ_WARTER_MARK (64*1024)
|
||||
#define SHRPX_READ_WATERMARK (64*1024)
|
||||
|
||||
#endif // SHRPX_H
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace {
|
|||
void upstream_writecb(bufferevent *bev, void *arg)
|
||||
{
|
||||
auto handler = static_cast<ClientHandler*>(arg);
|
||||
// We actually depend on write low-warter mark == 0.
|
||||
// We actually depend on write low-water mark == 0.
|
||||
if(handler->get_outbuf_length() > 0) {
|
||||
// Possibly because of deferred callback, we may get this callback
|
||||
// when the output buffer is not empty.
|
||||
|
@ -279,7 +279,7 @@ ClientHandler::ClientHandler(bufferevent *bev,
|
|||
}
|
||||
|
||||
bufferevent_enable(bev_, EV_READ | EV_WRITE);
|
||||
bufferevent_setwatermark(bev_, EV_READ, 0, SHRPX_READ_WARTER_MARK);
|
||||
bufferevent_setwatermark(bev_, EV_READ, 0, SHRPX_READ_WATERMARK);
|
||||
set_upstream_timeouts(&get_config()->upstream_read_timeout,
|
||||
&get_config()->upstream_write_timeout);
|
||||
if(ssl_) {
|
||||
|
|
|
@ -481,7 +481,7 @@ int Http2Session::initiate_connection()
|
|||
return SHRPX_ERR_NETWORK;
|
||||
}
|
||||
|
||||
bufferevent_setwatermark(bev_, EV_READ, 0, SHRPX_READ_WARTER_MARK);
|
||||
bufferevent_setwatermark(bev_, EV_READ, 0, SHRPX_READ_WATERMARK);
|
||||
bufferevent_enable(bev_, EV_READ);
|
||||
bufferevent_setcb(bev_, readcb, writecb, eventcb, this);
|
||||
// Set timeout for HTTP2 session
|
||||
|
|
|
@ -105,7 +105,7 @@ int HttpDownstreamConnection::attach_downstream(Downstream *downstream)
|
|||
http_parser_init(&response_htp_, HTTP_RESPONSE);
|
||||
response_htp_.data = downstream_;
|
||||
|
||||
bufferevent_setwatermark(bev_, EV_READ, 0, SHRPX_READ_WARTER_MARK);
|
||||
bufferevent_setwatermark(bev_, EV_READ, 0, SHRPX_READ_WATERMARK);
|
||||
bufferevent_enable(bev_, EV_READ);
|
||||
bufferevent_setcb(bev_,
|
||||
upstream->get_downstream_readcb(),
|
||||
|
|
Loading…
Reference in New Issue