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

Origin commit data
------------------
Branch: ni/coolstream
Commit: 5a000b6a4e
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-09-24 (Thu, 24 Sep 2015)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2015-09-24 13:32:38 +03:00
parent 581f2bf100
commit 3d9bb86385

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