Hello,
I was still experiencing problems with RTMPT on 0.81 final even with keepalive_requests and proxy_buffering fixes.
I've tried Nadia's fix, but it caused a vast amount of connections beetween client and server drop in TIME_WAIT, so I thought it was not so good idea.
I've found the fix on one of nginx's modules manual pages
here and added the following line to my nginx config
proxy_set_header Connection: Keep-Alive;
}
This forces all the connections through proxy_pass to be persistent, so they don't drop spontaneously.
There are still a lot of connections (about 2000-3000 in TIME_WAIT per RTMPT tunnel) inside the server, but not between the server and clients.
The fix did not raise the load on the server.
Before that client connected through RTMPT was disconnected after 40 min maximum.
After that I was connected through RTMPT to the server for whole 4 hours using VoIP and chat from time to time.
If anyone is experiencing the same problem on the 0.81 final, please, give this fix a test because this bug is very hard to repeat.
That is (was?) a hell of a bug, and I hope it's finally gone.
Regards,
Kozlov Sergey.