11 Commits
Author SHA1 Message Date
Sylwester LachiewiczandClaude Opus 5.5 7f3a9ac090 THRIFT-5779: Keep accepting connections after a transient accept() failure
Client: cpp

When accept() failed with EMFILE, TServerFramework::serve() stopped for good.
acceptImpl() now waits out running out of descriptors or memory, backing off
from 5 ms to 1 s and staying interruptible, and goes back to poll() when the
error belongs to the one connection. Linux keeps that connection queued, so
retrying without the wait would spin. Neither case is logged per attempt,
because a peer can cause both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 22:39:35 +01:00
CJCombrink 4a280d56cc THRIFT-5766 Replace std::endl with "\n"
Patch: Carel Combrink

This closes #2943
2024-04-15 22:37:44 +02:00
zeshuai007 6b1cb30f48 THRIFT-5217 Deprecated boost header
Client: cpp
Patch: Zezeng Wang

This closes #2158
2020-09-12 19:07:28 +02:00
Mario Emmenlauer ed0bad3430 Add isOpen() to TServerTransport
Client: cpp
2020-04-24 07:50:43 +01:00
cyy 316723add4 remove stdcxx namespace and use std directly 2019-01-07 08:11:37 -05:00
James E. King, III 82ae9575cd THRIFT-2221: detect C++11 and use std namespace for memory operations (smart_ptr)
Client: C++

This closes #1328
2017-08-10 13:27:21 -04:00
John Sirois cab5600663 THRIFT-3624 Fix lib/cpp/test/TServerSocketTest.cpp to use ephemeral ports.
Client: Test (C++)
Patch: John Sirois

Instead of using a fixed port, use an ephemeral port to improve
robustness and make way for parallelizability.

This closes #855
2016-02-14 22:47:18 +09:00
Konrad Grochowski 1f6e380c5d make style applied 2015-05-18 19:47:28 +02:00
Ben Craig 1684c42950 THRIFT-2441 Cannot shutdown TThreadedServer when clients are still connected
Author: James E. King, III <Jim.King@simplivity.com>
2015-04-24 08:52:44 -05:00
Roger Meier efd14e7c25 THRIFT-3062 fix segfault on invalid port number
This closes #425

commit 9d5654389d
Author: Jim King <jim.king@simplivity.com>
Date: 2015-04-04T19:47:34Z
2015-04-14 21:06:14 +02:00
Roger Meier 011445528f THRIFT-1025 C++ ServerSocket should inherit from Socket with the necessary Ctor to listen on connections from a specific host (similar to perl library)
Patch: Jim King <jim.king@simplivity.com>
This closes PR: #417
2015-04-04 16:14:08 +02:00