summaryrefslogtreecommitdiff
path: root/databases/memcached/files/patch-memcached.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--databases/memcached/files/patch-memcached.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/databases/memcached/files/patch-memcached.c b/databases/memcached/files/patch-memcached.c
index 7e248161d68f..547f0f611001 100644
--- a/databases/memcached/files/patch-memcached.c
+++ b/databases/memcached/files/patch-memcached.c
@@ -1,6 +1,6 @@
---- memcached.c.orig 2023-03-08 21:34:27 UTC
+--- memcached.c.orig 2025-07-29 01:17:34 UTC
+++ memcached.c
-@@ -707,7 +707,7 @@ conn *conn_new(const int sfd, enum conn_states init_st
+@@ -686,7 +686,7 @@ conn *conn_new(const int sfd, enum conn_states init_st
if (init_state == conn_listening) {
fprintf(stderr, "<%d server listening (%s)\n", sfd,
prot_text(c->protocol));
@@ -9,8 +9,8 @@
fprintf(stderr, "<%d server listening (udp)\n", sfd);
} else if (c->protocol == negotiating_prot) {
fprintf(stderr, "<%d new auto-negotiating client connection\n",
-@@ -772,7 +772,7 @@ conn *conn_new(const int sfd, enum conn_states init_st
- c->write = tcp_write;
+@@ -741,7 +741,7 @@ conn *conn_new(const int sfd, enum conn_states init_st
+ c->ssl_enabled = false;
}
- if (IS_UDP(transport)) {
@@ -18,7 +18,7 @@
c->try_read_command = try_read_command_udp;
} else {
switch (c->protocol) {
-@@ -871,7 +871,7 @@ static void conn_cleanup(conn *c) {
+@@ -839,7 +839,7 @@ static void conn_cleanup(conn *c) {
c->sasl_conn = NULL;
}
@@ -27,7 +27,7 @@
conn_set_state(c, conn_read);
}
}
-@@ -1171,7 +1171,7 @@ bool resp_start(conn *c) {
+@@ -1147,7 +1147,7 @@ bool resp_start(conn *c) {
c->resp->next = resp;
c->resp = resp;
}
@@ -36,7 +36,7 @@
// need to hold on to some data for async responses.
c->resp->request_id = c->request_id;
c->resp->request_addr = c->request_addr;
-@@ -2166,7 +2166,7 @@ void process_stats_conns(ADD_STAT add_stats, void *c)
+@@ -2160,7 +2160,7 @@ void process_stats_conns(ADD_STAT add_stats, void *c)
* output -- not worth the complexity of the locking that'd be
* required to prevent it.
*/
@@ -45,16 +45,16 @@
APPEND_NUM_STAT(i, "UDP", "%s", "UDP");
}
if (conns[i]->state != conn_closed) {
-@@ -3361,7 +3361,7 @@ static void drive_machine(conn *c) {
- break;
+@@ -3322,7 +3322,7 @@ static void drive_machine(conn *c) {
case conn_closing:
-- if (IS_UDP(c->transport))
-+ if IS_UDP(c->transport)
- conn_cleanup(c);
- else
- conn_close(c);
-@@ -3552,7 +3552,7 @@ static int server_socket(const char *interface,
+ if (!c->resps_suspended) {
+- if (IS_UDP(c->transport))
++ if IS_UDP(c->transport)
+ conn_cleanup(c);
+ else
+ conn_close(c);
+@@ -3524,7 +3524,7 @@ static int server_socket(const char *interface,
#endif
setsockopt(sfd, SOL_SOCKET, SO_REUSEADDR, (void *)&flags, sizeof(flags));
@@ -63,7 +63,7 @@
maximize_sndbuf(sfd);
} else {
error = setsockopt(sfd, SOL_SOCKET, SO_KEEPALIVE, (void *)&flags, sizeof(flags));
-@@ -3607,7 +3607,7 @@ static int server_socket(const char *interface,
+@@ -3579,7 +3579,7 @@ static int server_socket(const char *interface,
}
}