mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-06 02:49:45 -06:00
Prompt termination in shard/cdc
This commit is contained in:
@@ -46,7 +46,8 @@ static int shuckleSock(const std::string& host, uint16_t port, Duration timeout,
|
||||
throw SYSCALL_EXCEPTION("socket");
|
||||
}
|
||||
|
||||
int synRetries = 1;
|
||||
// We retry upstream anyway, and we want prompt termination of `connect`
|
||||
int synRetries = 0;
|
||||
setsockopt(sock, IPPROTO_TCP, TCP_SYNCNT, &synRetries, sizeof(synRetries));
|
||||
|
||||
struct sockaddr_in shuckleAddr;
|
||||
|
||||
Reference in New Issue
Block a user