diaspora_federation/lib
Dennis Schubert 7c3f430bcf
Do not reuse cURL sockets
This patch sets CURLOPT_FORBID_REUSE, which tells cURL to close all
connections when they are done. By default, connections are held open
for later use unless explicitly closed or expired by a timeout. This can
improve performance if the same instance is used for multiple requests
to a single host.

We never have that: a host receives only one message per queue job, so
keeping the socket opened for 60 seconds (the default timeout) is
totally useless.

In addition, keeping the sockets open can cause problems for larger
instances with fast workers and a lot of jobs. Mainly, diaspora/#6485 is
caused by this very issue, which is resolved by this as well.
2016-07-02 10:38:29 +02:00
..
diaspora_federation Do not reuse cURL sockets 2016-07-02 10:38:29 +02:00
tasks fix release task 2015-07-10 02:13:17 +02:00
diaspora_federation.rb use shorter callback keys for key-callbacks 2016-03-29 02:42:19 +02:00