mirror of
https://github.com/arut/nginx-rtmp-module.git
synced 2025-08-06 15:00:18 +08:00
reverted to using client handshake write callback instead of just posting
This commit is contained in:
@ -609,7 +609,10 @@ ngx_rtmp_client_handshake(ngx_rtmp_session_t *s, unsigned async)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (async) {
|
if (async) {
|
||||||
ngx_post_event(c->write, &ngx_posted_events);
|
ngx_add_timer(c->write, s->timeout);
|
||||||
|
if (ngx_handle_write_event(c->write, 0) != NGX_OK) {
|
||||||
|
ngx_rtmp_finalize_session(s);
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user