We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f226b68 + d0b8776 commit 91dfb48Copy full SHA for 91dfb48
source/mysql/connection.d
@@ -387,13 +387,20 @@ package:
387
{
388
auto s = new PlainPhobosSocket();
389
s.connect(new InternetAddress(host, port));
390
+ s.setOption(SocketOptionLevel.TCP, SocketOption.TCP_NODELAY, true);
391
+ s.setOption(SocketOptionLevel.SOCKET, SocketOption.KEEPALIVE, true);
392
return s;
393
}
394
395
static PlainVibeDSocket defaultOpenSocketVibeD(string host, ushort port)
396
397
version(Have_vibe_core)
- return vibe.core.net.connectTCP(host, port);
398
+ {
399
+ auto s = vibe.core.net.connectTCP(host, port);
400
+ s.tcpNoDelay = true;
401
+ s.keepAlive = true;
402
+ return s;
403
+ }
404
else
405
assert(0);
406
0 commit comments