<feed xmlns='http://www.w3.org/2005/Atom'>
<title>soledad.git/client/changes/bug_reuse-http-connection, branch feature/enc-sync-transitional-db</title>
<subtitle>[soledad]
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/'/>
<entry>
<title>Do not instantiate the synchronizer each time.</title>
<updated>2013-12-20T02:08:26+00:00</updated>
<author>
<name>Kali Kaneko</name>
<email>kali@leap.se</email>
</author>
<published>2013-12-20T01:52:12+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/soledad.git/commit/?id=7a6d913fed8fc8332174c7ac5c8a4a5472a478c3'/>
<id>7a6d913fed8fc8332174c7ac5c8a4a5472a478c3</id>
<content type='text'>
This has the nice effect of letting the persistent-connection
reuse the existing connection, avoiding the ssl handshake overhead
each time we try to synchronize.

This can be traced by logging the instantiation of HttpClientBase
in u1db.remote

I *think* we should be fine with the timeouts as long as we keep
the sync period along the 1 min we are doing now. For other cases,
we should look into how to override the default timeout in httplib
(used by u1db http_client).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This has the nice effect of letting the persistent-connection
reuse the existing connection, avoiding the ssl handshake overhead
each time we try to synchronize.

This can be traced by logging the instantiation of HttpClientBase
in u1db.remote

I *think* we should be fine with the timeouts as long as we keep
the sync period along the 1 min we are doing now. For other cases,
we should look into how to override the default timeout in httplib
(used by u1db http_client).
</pre>
</div>
</content>
</entry>
</feed>
