mirror of
https://github.com/nginx/nginx.git
synced 2024-12-03 21:18:59 +08:00
SPDY: better name for flag that indicates incomplete frame state.
No functional changes.
This commit is contained in:
parent
00944562ac
commit
6ddb578b22
@ -346,7 +346,7 @@ ngx_http_spdy_read_handler(ngx_event_t *rev)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (n == 0 && (sc->waiting || sc->processing)) {
|
if (n == 0 && (sc->incomplete || sc->processing)) {
|
||||||
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
ngx_log_error(NGX_LOG_INFO, c->log, 0,
|
||||||
"client closed prematurely connection");
|
"client closed prematurely connection");
|
||||||
}
|
}
|
||||||
@ -360,7 +360,7 @@ ngx_http_spdy_read_handler(ngx_event_t *rev)
|
|||||||
end += n;
|
end += n;
|
||||||
|
|
||||||
sc->buffer_used = 0;
|
sc->buffer_used = 0;
|
||||||
sc->waiting = 0;
|
sc->incomplete = 0;
|
||||||
|
|
||||||
do {
|
do {
|
||||||
p = sc->handler(sc, p, end);
|
p = sc->handler(sc, p, end);
|
||||||
@ -567,7 +567,7 @@ ngx_http_spdy_handle_connection(ngx_http_spdy_connection_t *sc)
|
|||||||
|
|
||||||
sscf = ngx_http_get_module_srv_conf(sc->http_connection->conf_ctx,
|
sscf = ngx_http_get_module_srv_conf(sc->http_connection->conf_ctx,
|
||||||
ngx_http_spdy_module);
|
ngx_http_spdy_module);
|
||||||
if (sc->waiting) {
|
if (sc->incomplete) {
|
||||||
ngx_add_timer(c->read, sscf->recv_timeout);
|
ngx_add_timer(c->read, sscf->recv_timeout);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1489,7 +1489,7 @@ ngx_http_spdy_state_save(ngx_http_spdy_connection_t *sc,
|
|||||||
|
|
||||||
sc->buffer_used = end - pos;
|
sc->buffer_used = end - pos;
|
||||||
sc->handler = handler;
|
sc->handler = handler;
|
||||||
sc->waiting = 1;
|
sc->incomplete = 1;
|
||||||
|
|
||||||
return end;
|
return end;
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ struct ngx_http_spdy_connection_s {
|
|||||||
ngx_uint_t last_sid;
|
ngx_uint_t last_sid;
|
||||||
|
|
||||||
unsigned blocked:1;
|
unsigned blocked:1;
|
||||||
unsigned waiting:1; /* FIXME better name */
|
unsigned incomplete:1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user