From d4a05c7c3b833732a3fc2d1d720bf64cbbcd9e65 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Thu, 24 Sep 2015 13:32:38 +0300 Subject: [PATCH] driver/streamts.cpp: bug fix: SO_SNDBUF for connection fd Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/5a000b6a4e0342b27b2b0178f2bc18778516b6e4 Author: [CST] Focus Date: 2015-09-24 (Thu, 24 Sep 2015) --- src/driver/streamts.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/driver/streamts.cpp b/src/driver/streamts.cpp index 118d7f625..798f47dcc 100644 --- a/src/driver/streamts.cpp +++ b/src/driver/streamts.cpp @@ -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