mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 14:56:15 +08:00
QUIC: simplified stream fd initialization.
This commit is contained in:
parent
af2121267b
commit
b2c8e690ce
@ -431,7 +431,7 @@ ngx_quic_create_stream(ngx_connection_t *c, uint64_t id)
|
||||
*log = *c->log;
|
||||
pool->log = log;
|
||||
|
||||
sc = ngx_get_connection(-1, log);
|
||||
sc = ngx_get_connection(c->fd, log);
|
||||
if (sc == NULL) {
|
||||
ngx_destroy_pool(pool);
|
||||
return NULL;
|
||||
@ -440,7 +440,6 @@ ngx_quic_create_stream(ngx_connection_t *c, uint64_t id)
|
||||
qs->connection = sc;
|
||||
|
||||
sc->quic = qs;
|
||||
sc->fd = c->fd;
|
||||
sc->shared = 1;
|
||||
sc->type = SOCK_STREAM;
|
||||
sc->pool = pool;
|
||||
|
Loading…
Reference in New Issue
Block a user