Amaury Denoyelle
6bfabfdc77
OPTIM: backend: skip conn reuse for incompatible proxies
...
When trying to reuse a backend connection, a connection hash is
calculated to match an entry with similar parameters. Previously, this
operation was skipped if the stream content wasn't based on HTTP, as it
would have been incompatible with http-reuse.
With the introduction of SPOP backends, this condition was removed, so
that it can also benefit from connection reuse. However, this means that
now hash calcul is always performed when connecting to a server, even
for TCP or log backends. This is unnecessary as these proxies cannot
perform connection reuse.
Note also that reuse mode is resetted on postparsing for incompatible
backends. This at least guarantees that no tree lookup will be performed
via be_reuse_connection(). However, connection lookup is still performed
in the session via session_get_conn() which is another unnecessary
operation.
Thus, this patch restores the condition so that reuse operations are now
entirely skipped if a backend mode is incompatible. This is implemented
via a new utility function named be_supports_conn_reuse().
This could be backported up to 3.1, as this commit could be considered
as a performance regression for tcp/log backend modes.
2025-11-03 10:43:50 +01:00
..
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-10-28 11:59:32 +01:00
2025-10-23 11:14:07 +02:00
2025-09-11 16:32:34 +02:00
2025-10-27 16:57:07 +01:00
2025-02-06 16:55:37 +01:00
2025-11-03 10:43:50 +01:00
2025-10-08 11:10:42 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-01-20 17:53:55 +01:00
2025-10-23 16:47:58 +02:00
2025-09-16 09:23:46 +02:00
2025-10-23 16:49:20 +02:00
2025-10-29 10:54:17 +01:00
2025-09-17 17:19:33 +02:00
2025-10-24 13:51:15 +02:00
2025-09-18 16:49:51 +02:00
2025-01-29 17:55:18 +01:00
2025-10-29 10:54:17 +01:00
2025-08-07 22:27:09 +02:00
2025-08-11 19:55:30 +02:00
2025-09-16 09:23:46 +02:00
2025-09-16 09:23:46 +02:00
2025-07-17 19:07:58 +02:00
2025-09-06 11:05:52 +02:00
2025-09-11 16:32:34 +02:00
2024-11-18 18:50:02 +01:00
2025-09-10 16:48:09 +02:00
2025-08-11 19:55:30 +02:00
2025-09-17 14:30:32 +02:00
2025-09-17 14:30:32 +02:00
2025-10-30 11:59:39 +01:00
2025-01-07 16:42:38 +01:00
2025-02-26 13:00:18 +01:00
2025-02-26 13:00:18 +01:00
2025-02-26 13:00:18 +01:00
2025-08-11 19:55:30 +02:00
2024-11-15 15:39:00 +01:00
2025-09-18 16:49:51 +02:00
2025-08-11 19:55:30 +02:00
2025-10-08 11:10:42 +02:00
2025-08-11 19:55:30 +02:00
2025-10-08 11:10:42 +02:00
2025-08-26 16:12:18 +02:00
2025-02-06 17:01:15 +01:00
2025-07-29 18:04:14 +02:00
2025-07-25 16:46:10 +02:00
2025-09-16 09:23:46 +02:00
2025-10-21 14:22:26 +02:00
2025-05-16 15:13:17 +02:00
2025-10-02 15:29:58 +02:00
2025-10-21 15:51:48 +02:00
2025-10-29 10:54:17 +01:00
2025-08-11 19:55:30 +02:00
2025-10-08 11:10:25 +02:00
2025-09-09 16:55:09 +02:00
2025-09-18 16:49:51 +02:00
2025-10-08 10:29:41 +02:00
2025-09-19 14:59:28 +02:00
2024-11-06 10:06:52 +01:00
2025-04-02 11:12:20 +02:00
2025-10-08 11:10:25 +02:00
2025-01-03 10:10:09 +01:00
2024-11-19 15:20:02 +01:00
2025-10-29 08:47:19 +01:00
2025-07-24 12:13:42 +02:00
2025-01-31 15:51:51 +01:00
2025-08-07 22:27:14 +02:00
2025-09-11 14:31:32 +02:00
2025-10-13 10:38:52 +02:00
2025-10-16 10:43:09 +02:00
2025-01-28 12:49:41 +01:00
2025-10-01 18:13:33 +02:00
2025-04-17 17:38:23 +02:00
2025-01-28 12:49:41 +01:00
2025-04-03 11:37:25 +02:00
2025-09-05 08:51:07 +02:00
2025-10-30 10:37:42 +01:00
2025-09-18 16:49:51 +02:00
2025-06-27 16:41:18 +02:00
2025-04-24 15:09:37 +02:00
2025-10-06 09:30:07 +02:00
2025-10-08 11:10:42 +02:00
2025-10-29 17:18:26 +01:00
2025-10-30 18:16:54 +01:00
2025-08-20 18:33:10 +02:00
2025-10-23 16:49:20 +02:00
2025-09-16 09:23:46 +02:00
2025-08-20 17:15:52 +02:00
2024-12-10 08:05:34 +01:00
2025-10-22 15:04:24 +02:00
2025-09-25 15:28:22 +02:00
2025-07-01 11:55:36 +02:00
2025-09-10 19:14:05 +02:00
2025-08-11 19:55:30 +02:00
2025-10-22 09:06:20 +02:00
2025-10-23 16:49:20 +02:00
2025-09-05 15:56:42 +02:00
2024-11-25 15:20:24 +01:00
2025-09-17 17:19:33 +02:00
2024-10-29 12:14:50 +01:00
2025-06-11 18:37:34 +02:00
2025-10-23 16:47:58 +02:00
2025-10-08 10:29:41 +02:00
2025-10-08 11:10:42 +02:00
2025-06-12 11:28:54 +02:00
2025-07-15 18:39:23 +02:00
2025-08-11 19:55:30 +02:00
2025-08-11 19:55:30 +02:00
2025-04-29 15:10:06 +02:00
2025-10-23 16:49:20 +02:00
2024-12-13 14:42:43 +01:00
2025-04-29 15:10:06 +02:00
2025-04-29 15:10:06 +02:00
2025-10-23 16:49:20 +02:00
2025-10-17 09:29:01 +02:00
2025-10-23 16:49:20 +02:00
2025-10-15 09:58:03 +02:00
2025-08-28 08:19:34 +02:00
2025-10-23 16:49:20 +02:00
2025-08-07 16:59:59 +02:00
2025-01-23 17:41:07 +01:00
2025-08-07 16:59:59 +02:00
2025-06-26 09:48:00 +02:00
2025-01-27 11:11:43 +01:00
2025-10-23 16:49:20 +02:00
2025-09-11 09:51:28 +02:00
2025-10-22 15:04:41 +02:00
2025-08-11 19:55:30 +02:00
2025-10-22 15:04:41 +02:00
2025-10-23 16:49:20 +02:00
2025-08-07 16:59:59 +02:00
2025-10-23 16:49:20 +02:00
2025-10-01 10:23:01 +02:00
2025-10-13 16:56:43 +02:00
2025-11-02 17:28:32 +01:00
2025-09-18 15:27:32 +02:00
2025-10-23 16:47:58 +02:00
2025-09-18 16:49:51 +02:00
2025-10-31 11:32:20 +01:00
2025-09-18 16:49:51 +02:00
2025-08-11 19:55:30 +02:00
2025-10-03 14:31:05 +02:00
2025-05-16 16:43:53 +02:00
2025-07-29 18:04:14 +02:00
2024-10-29 12:15:24 +01:00
2025-08-08 06:01:18 +02:00
2025-10-29 10:54:17 +01:00
2025-09-11 09:51:28 +02:00
2025-08-11 17:42:16 +02:00
2025-07-09 16:01:02 +02:00
2025-09-15 15:34:36 +02:00
2025-10-31 12:27:38 +01:00
2025-10-30 10:37:12 +01:00
2025-09-11 14:31:32 +02:00
2025-07-24 10:58:54 +02:00
2025-10-24 09:35:38 +02:00
2025-08-28 18:58:11 +02:00
2025-02-06 17:19:49 +01:00
2025-11-03 07:33:11 +01:00
2025-07-05 00:12:45 +02:00
2025-10-10 11:11:44 +02:00
2025-10-24 10:15:11 +02:00
2025-10-08 11:10:42 +02:00
2024-11-25 08:09:09 +01:00
2025-10-01 10:18:53 +02:00
2025-09-18 16:49:51 +02:00
2025-09-18 16:49:51 +02:00
2025-04-02 14:57:40 +02:00
2025-09-09 16:55:09 +02:00
2025-10-17 20:36:00 +02:00
2025-09-16 10:41:19 +02:00
2025-09-18 08:31:57 +02:00
2024-11-14 15:03:38 +01:00
2025-09-16 10:51:23 +02:00
2025-01-20 17:53:55 +01:00
2025-10-01 10:18:53 +02:00
2025-08-20 17:28:03 +02:00
2025-09-04 20:49:06 +02:00