driver/streamts.cpp: bug fix: SO_SNDBUF for connection fd

Origin commit data
------------------
Commit: 5a000b6a4e
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-09-24 (Thu, 24 Sep 2015)
This commit is contained in:
[CST] Focus
2015-09-24 13:32:38 +03:00
parent 08a2c02c63
commit d4a05c7c3b

View File

@@ -502,7 +502,7 @@ bool CStreamManager::AddClient(int connfd)
int sendsize = 10*IN_SIZE;
unsigned int m = sizeof(sendsize);
setsockopt(listenfd, SOL_SOCKET, SO_SNDBUF, (void *)&sendsize, m);
setsockopt(connfd, SOL_SOCKET, SO_SNDBUF, (void *)&sendsize, m);
if (stream->Start())
streams.insert(streammap_pair_t(channel_id, stream));
else