Skip to content

Commit 911cd44

Browse files
committed
Merge #1045, for #1044, TCP connection alive detection. 2.0.245
1 parent a687105 commit 911cd44

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ Remark:
332332

333333
## History
334334

335+
* v2.0, 2018-01-07, Merge [#1045][bug #1045], fix [#1044][bug #1044], TCP connection alive detection. 2.0.245
335336
* v2.0, 2018-01-04, Merge [#1039][bug #1039], fix bug of init.d script.
336337
* v2.0, 2018-01-01, Merge [#1033][bug #1033], allow user to add some specific flags. 2.0.244
337338
* <strong>v2.0, 2017-06-10, [2.0 release2(2.0.243)][r2.0r2] released. 86670 lines.</strong>
@@ -1300,6 +1301,8 @@ Winlin
13001301
[bug #899]: https://github.com/ossrs/srs/issues/899
13011302
[bug #1033]: https://github.com/ossrs/srs/issues/1033
13021303
[bug #1039]: https://github.com/ossrs/srs/issues/1039
1304+
[bug #1044]: https://github.com/ossrs/srs/issues/1044
1305+
[bug #1045]: https://github.com/ossrs/srs/issues/1045
13031306
[bug #xxxxxxxxxx]: https://github.com/ossrs/srs/issues/xxxxxxxxxx
13041307

13051308
[exo #828]: https://github.com/google/ExoPlayer/pull/828

trunk/src/app/srs_app_listener.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ int SrsTcpListener::listen()
223223
}
224224
srs_verbose("setsockopt reuse-addr success. port=%d, fd=%d", port, _fd);
225225

226-
#ifdef SO_KEEPALIVE
226+
#ifdef SRS_PERF_SO_KEEPALIVE
227227
int tcp_keepalive = 1;
228228
if (setsockopt(_fd, SOL_SOCKET, SO_KEEPALIVE, &tcp_keepalive, sizeof(int)) == -1) {
229229
ret = ERROR_SOCKET_SETKEEPALIVE;

trunk/src/core/srs_core.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3131
// current release version
3232
#define VERSION_MAJOR 2
3333
#define VERSION_MINOR 0
34-
#define VERSION_REVISION 244
34+
#define VERSION_REVISION 245
3535

3636
// generated by configure, only macros.
3737
#include <srs_auto_headers.hpp>

trunk/src/core/srs_core_performance.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,9 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
188188
#undef SRS_PERF_FAST_FLV_ENCODER
189189
#define SRS_PERF_FAST_FLV_ENCODER
190190

191+
// Whether set SO_KEEPALIVE for TCP connection.
192+
// @see https://github.com/ossrs/srs/issues/1044
193+
#undef SRS_PERF_SO_KEEPALIVE
194+
191195
#endif
192196

0 commit comments

Comments
 (0)