FS-8406 #resolve #comment improvement to drop video packets on slow rtmp link

This commit is contained in:
Seven Du committed 2016-03-18 09:05:45 +08:00
1 parent 13c99e938b
commit 3d90d752fc
5 files changed
+152 -49

No files matched your search

+4
View File
@@ -301,6 +301,10 @@ switch_status_t rtmp_tcp_init(rtmp_profile_t *profile, const char *bindaddr, rtm
if (switch_socket_opt_set(io_tcp->listen_socket, SWITCH_SO_TCP_NODELAY, 1)) {
goto fail;
}
if (1) {
switch_socket_opt_set(io_tcp->listen_socket, SWITCH_SO_RCVBUF, 1572864);
switch_socket_opt_set(io_tcp->listen_socket, SWITCH_SO_SNDBUF, 1572864);
}
if (switch_socket_bind(io_tcp->listen_socket, sa)) {
goto fail;
}