mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
Update to pokerth 2.0.7 from maintainer
Add patch to disable TCP_KEEPALIVE
This commit is contained in:
@@ -2,7 +2,7 @@ BROKEN-i386 = protobuf/abseil problems
|
||||
|
||||
COMMENT = texas holdem poker client, local or internet games
|
||||
|
||||
V = 2.0.6
|
||||
V = 2.0.7
|
||||
DIST_TUPLE = github pokerth pokerth v${V} .
|
||||
PKGNAME = pokerth-${V}
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
SHA256 (pokerth-pokerth-v2.0.6.tar.gz) = BUJ3TU2/ZGN16Anqubgd9uzLDFKnXmlenwIQ13LnUWw=
|
||||
SIZE (pokerth-pokerth-v2.0.6.tar.gz) = 27518352
|
||||
SHA256 (pokerth-pokerth-v2.0.7.tar.gz) = ju2GsFNwNTxWUUcbyYhW76jw9harIMZbsoDXu3Mv0Lo=
|
||||
SIZE (pokerth-pokerth-v2.0.7.tar.gz) = 27530236
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Index: src/gui/qt6-qml/CMakeLists.txt
|
||||
--- src/gui/qt6-qml/CMakeLists.txt.orig
|
||||
+++ src/gui/qt6-qml/CMakeLists.txt
|
||||
@@ -132,5 +132,4 @@ endif()
|
||||
@@ -147,5 +147,4 @@ endif()
|
||||
|
||||
install(TARGETS pokerth_qml-client DESTINATION bin OPTIONAL)
|
||||
install(DIRECTORY ../../../data DESTINATION share/pokerth)
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
TCP_KEEPALIVE not supported
|
||||
|
||||
Index: src/net/serveraccepthelper.h
|
||||
--- src/net/serveraccepthelper.h.orig
|
||||
+++ src/net/serveraccepthelper.h
|
||||
@@ -245,6 +245,7 @@ class ServerAcceptHelper : public ServerAcceptInterfac
|
||||
int keepidle = 30; // seconds until first keepalive probe
|
||||
int keepintvl = 10; // seconds between subsequent probes
|
||||
int keepcnt = 6; // number of failed probes before disconnect
|
||||
+#if !defined(__OpenBSD__)
|
||||
#if defined(__APPLE__)
|
||||
setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE, &keepidle, sizeof(keepidle));
|
||||
#else
|
||||
@@ -252,6 +253,7 @@ class ServerAcceptHelper : public ServerAcceptInterfac
|
||||
#endif
|
||||
setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &keepintvl, sizeof(keepintvl));
|
||||
setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, &keepcnt, sizeof(keepcnt));
|
||||
+#endif
|
||||
// TCP_USER_TIMEOUT: abort connection if data remains
|
||||
// unacknowledged for 90s (matches keepalive detection).
|
||||
// Without this, a dead client can keep the server
|
||||
Reference in New Issue
Block a user