<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/curl.git/lib/conncache.c, branch bagder/https-proxy-tests</title>
<subtitle>github.com: bagder/curl.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/'/>
<entry>
<title>conncache: various concept cleanups</title>
<updated>2020-04-30T12:27:54+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-04-26T22:33:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=c06902713998d68202c5a764de910ba8d0e8f54d'/>
<id>c06902713998d68202c5a764de910ba8d0e8f54d</id>
<content type='text'>
More connection cache accesses are protected by locks.

CONNCACHE_* is a beter prefix for the connection cache lock macros.

Curl_attach_connnection: now called as soon as there's a connection
struct available and before the connection is added to the connection
cache.

Curl_disconnect: now assumes that the connection is already removed from
the connection cache.

Ref: #4915
Closes #5009
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
More connection cache accesses are protected by locks.

CONNCACHE_* is a beter prefix for the connection cache lock macros.

Curl_attach_connnection: now called as soon as there's a connection
struct available and before the connection is added to the connection
cache.

Curl_disconnect: now assumes that the connection is already removed from
the connection cache.

Ref: #4915
Closes #5009
</pre>
</div>
</content>
</entry>
<entry>
<title>conncache: removed unused Curl_conncache_bundle_size()</title>
<updated>2020-01-24T09:29:06+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2020-01-23T08:03:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=77450003383df8469b74916a3c2d54d4b57226ff'/>
<id>77450003383df8469b74916a3c2d54d4b57226ff</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>conncache: CONNECT_ONLY connections assumed always in-use</title>
<updated>2019-12-11T08:25:56+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-12-10T09:39:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=1d5c427d7fd6c206de4b010f618659a7a9b38cff'/>
<id>1d5c427d7fd6c206de4b010f618659a7a9b38cff</id>
<content type='text'>
This makes them never to be considered "the oldest" to be discarded when
reaching the connection cache limit. The reasoning here is that
CONNECT_ONLY is primarily used in combination with using the
connection's socket post connect and since that is used outside of
curl's knowledge we must assume that it is in use until explicitly
closed.

Reported-by: Pavel Pavlov
Reported-by: Pavel Löbl
Fixes #4426
Fixes #4369
Closes #4696
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This makes them never to be considered "the oldest" to be discarded when
reaching the connection cache limit. The reasoning here is that
CONNECT_ONLY is primarily used in combination with using the
connection's socket post connect and since that is used outside of
curl's knowledge we must assume that it is in use until explicitly
closed.

Reported-by: Pavel Pavlov
Reported-by: Pavel Löbl
Fixes #4426
Fixes #4369
Closes #4696
</pre>
</div>
</content>
</entry>
<entry>
<title>conncache: fix multi-thread use of shared connection cache</title>
<updated>2019-12-09T14:30:09+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-12-09T10:53:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=ee263de7a378e701f15e58879f36fdcfe8742006'/>
<id>ee263de7a378e701f15e58879f36fdcfe8742006</id>
<content type='text'>
It could accidentally let the connection get used by more than one
thread, leading to double-free and more.

Reported-by: Christopher Reid
Fixes #4544
Closes #4557
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It could accidentally let the connection get used by more than one
thread, leading to double-free and more.

Reported-by: Christopher Reid
Fixes #4544
Closes #4557
</pre>
</div>
</content>
</entry>
<entry>
<title>url: make Curl_close() NULLify the pointer too</title>
<updated>2019-10-30T08:36:21+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-10-28T08:28:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=dcd7e37c3a0ce108635b89cacc1e3425e57bd3bc'/>
<id>dcd7e37c3a0ce108635b89cacc1e3425e57bd3bc</id>
<content type='text'>
This is the common pattern used in the code and by a unified approach we
avoid mistakes.

Closes #4534
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is the common pattern used in the code and by a unified approach we
avoid mistakes.

Closes #4534
</pre>
</div>
</content>
</entry>
<entry>
<title>conncache: Remove the DEBUGASSERT on length check</title>
<updated>2019-05-29T21:07:43+00:00</updated>
<author>
<name>Steve Holme</name>
<email>steve_holme@hotmail.com</email>
</author>
<published>2019-05-29T06:59:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=bdf6d8af3e7be26ed9b49f6bfae986ec44964429'/>
<id>bdf6d8af3e7be26ed9b49f6bfae986ec44964429</id>
<content type='text'>
We trust the calling code as this is an internal function.

Closes #3962
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We trust the calling code as this is an internal function.

Closes #3962
</pre>
</div>
</content>
</entry>
<entry>
<title>url: default conn-&gt;port to the same as conn-&gt;remote_port</title>
<updated>2019-05-28T21:00:42+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-05-28T14:17:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=a6183ab23a702f45b14affe7ab25996960cd8b1b'/>
<id>a6183ab23a702f45b14affe7ab25996960cd8b1b</id>
<content type='text'>
... so that it has a sensible value when ConnectionExists() is called which
needs it set to differentiate host "bundles" correctly on port number!

Also, make conncache:hashkey() use correct port for bundles that are proxy vs
host connections.

Probably a regression from 7.62.0

Reported-by: Tom van der Woerdt
Fixes #3956
Closes #3957
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... so that it has a sensible value when ConnectionExists() is called which
needs it set to differentiate host "bundles" correctly on port number!

Also, make conncache:hashkey() use correct port for bundles that are proxy vs
host connections.

Probably a regression from 7.62.0

Reported-by: Tom van der Woerdt
Fixes #3956
Closes #3957
</pre>
</div>
</content>
</entry>
<entry>
<title>conncache: make "bundles" per host name when doing proxy tunnels</title>
<updated>2019-05-28T14:23:59+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-05-28T10:14:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=2f11fbf208c78d38e9a19b1224238c4ecff5989f'/>
<id>2f11fbf208c78d38e9a19b1224238c4ecff5989f</id>
<content type='text'>
Only HTTP proxy use where multiple host names can be used over the same
connection should use the proxy host name for bundles.

Reported-by: Tom van der Woerdt
Fixes #3951
Closes #3955
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only HTTP proxy use where multiple host names can be used over the same
connection should use the proxy host name for bundles.

Reported-by: Tom van der Woerdt
Fixes #3951
Closes #3955
</pre>
</div>
</content>
</entry>
<entry>
<title>CURLOPT_MAXAGE_CONN: set the maximum allowed age for conn reuse</title>
<updated>2019-04-21T21:06:23+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-04-14T21:20:01+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e649432e7234dfe6905f4663bd0ce7b37ef2c5e7'/>
<id>e649432e7234dfe6905f4663bd0ce7b37ef2c5e7</id>
<content type='text'>
... and disconnect too old ones instead of trying to reuse.

Default max age is set to 118 seconds.

Ref: #3722
Closes #3782
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
... and disconnect too old ones instead of trying to reuse.

Default max age is set to 118 seconds.

Ref: #3722
Closes #3782
</pre>
</div>
</content>
</entry>
<entry>
<title>conncache: use conn-&gt;data to know if a transfer owns it</title>
<updated>2019-03-17T17:07:20+00:00</updated>
<author>
<name>Daniel Stenberg</name>
<email>daniel@haxx.se</email>
</author>
<published>2019-03-16T23:49:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/curl.git/commit/?id=e3a53e3efb942a5446a22725340e36af63f1632e'/>
<id>e3a53e3efb942a5446a22725340e36af63f1632e</id>
<content type='text'>
- make sure an already "owned" connection isn't returned unless
  multiplexed.

- clear -&gt;data when returning the connection to the cache again

Regression since 7.62.0 (probably in commit 1b76c38904f0)

Bug: https://curl.haxx.se/mail/lib-2019-03/0064.html

Closes #3686
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- make sure an already "owned" connection isn't returned unless
  multiplexed.

- clear -&gt;data when returning the connection to the cache again

Regression since 7.62.0 (probably in commit 1b76c38904f0)

Bug: https://curl.haxx.se/mail/lib-2019-03/0064.html

Closes #3686
</pre>
</div>
</content>
</entry>
</feed>
