diff options
author | Bryan Gleeson <bryangleeson@yahoo.com> | 2011-06-10 13:02:20 -0700 |
---|---|---|
committer | Colin Guthrie <colin@mageia.org> | 2011-06-22 23:15:57 +0100 |
commit | c8f0a649cf058019f1046c5fc7f6484c864fc954 (patch) | |
tree | 7145671ab9079f92b6f004d1ccdb3530d4e3d055 /src/modules | |
parent | dd9265ac78b56c378bc7ca47920be9d9d93392b7 (diff) |
raop: Change socket buffer size handling to avoid playback underruns
When a TCP socket is created the size of the send buffer (SO_SNDBUF) used is
determined by the OS, using the net.ipv4.tcp_wmem sysctl parameter. Previously
a call to setsockopt set the buffer size to a value that was too small, and
that in some cases could result in underruns and choppy playback. This
setsockopt call has now been removed so that the value determined by the OS
is used unchanged.
Note that the value used for the send buffer size is the 2nd value in
net.ipv4.tcp_wmem, e.g. if this is set to "4096 65536 8388608" the send buffer
size is set to 65536.
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/raop/raop_client.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/modules/raop/raop_client.c b/src/modules/raop/raop_client.c index 4d2ad6ea..cba7af9a 100644 --- a/src/modules/raop/raop_client.c +++ b/src/modules/raop/raop_client.c @@ -219,7 +219,6 @@ static void on_connection(pa_socket_client *sc, pa_iochannel *io, void *userdata c->fd = pa_iochannel_get_send_fd(io); pa_iochannel_set_noclose(io, TRUE); - pa_iochannel_socket_set_sndbuf(io, 1024); pa_iochannel_free(io); pa_make_tcp_socket_low_delay(c->fd); |