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. |
||
|---|---|---|
| .. | ||
| diaspora_federation | ||
| tasks | ||
| diaspora_federation.rb | ||