Closed hongzhidao closed 6 years ago
Thanks for noticing this. But since the name sockets
is never used in nginx code, I will rather rename p
to fd
.
Hi.
I think write_fd isn't processed well.
diff --git a/src/ngx_http_live_module.c b/src/ngx_http_live_module.c
index 9fa88a8..1d9f8cc 100644
--- a/src/ngx_http_live_module.c
+++ b/src/ngx_http_live_module.c
@@ -1131,7 +1131,7 @@ ngx_http_live_init_module(ngx_cycle_t *cycle)
}
lmcf->read_fd = fd;
- lmcf->write_fd = fd + nfd * sizeof(ngx_socket_t);
+ lmcf->write_fd = fd + nfd;
cln = ngx_pool_cleanup_add(cycle->pool, 0);
if (cln == NULL) {
On Thu, Sep 20, 2018 at 4:28 PM Roman Arutyunyan notifications@github.com wrote:
Closed #1 https://github.com/arut/nginx-live-module/issues/1.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/arut/nginx-live-module/issues/1#event-1857009719, or mute the thread https://github.com/notifications/unsubscribe-auth/AHz516FHROw2vxImX0w2jx8-YMhmDV3Mks5uc1GfgaJpZM4WxTXR .
Hi. Please take a look.
Since the type of p is ngx_socket_t (not u_char ).