arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.41k stars 3.51k forks source link

Workers segfault when auto_pushed to and IPv6 is used for RTMP #290

Open florolf opened 10 years ago

florolf commented 10 years ago

I'm running nginx-rtmp with the following configuration (abridged):

worker_processes  2;
rtmp_auto_push on;

rtmp {
    server {
        listen [::]:1935 ipv6only=off;

        application stream {
            live on;

            allow publish 127.0.0.1;
            deny publish all;

            allow play all;
        }
    }
}

Second worker segfaults from time to time. I've looked into the issue, and believe the following is happening:

Additionally, the code in ngx_rtmp_init_connection handling the port->naddrs > 1-case for AF_UNIX connections does not make any sense, because sa won't be a struct sockaddr_in. But this is unrelated to the main problem.

smk462 commented 2 weeks ago

please tell me how do you make it happened,the ipv6 addr isn't work.