<feed xmlns='http://www.w3.org/2005/Atom'>
<title>leap_pycommon.git/src, branch release/bitmask-0.9.x-alpha</title>
<subtitle>[leap_pycommon] 
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/'/>
<entry>
<title>[bug] catch missing section header error</title>
<updated>2015-06-10T18:52:11+00:00</updated>
<author>
<name>Kali Kaneko</name>
<email>kali@leap.se</email>
</author>
<published>2015-06-10T18:52:11+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=e7d13868c037a92fdb8f59af3c28ca496034744f'/>
<id>e7d13868c037a92fdb8f59af3c28ca496034744f</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[feature] utility collect_plugins</title>
<updated>2015-06-10T14:46:15+00:00</updated>
<author>
<name>Kali Kaneko</name>
<email>kali@leap.se</email>
</author>
<published>2015-06-05T17:11:56+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=4c02fbe43c9076e11826c7087c94f8910d98edc8'/>
<id>4c02fbe43c9076e11826c7087c94f8910d98edc8</id>
<content type='text'>
to be used in post-sync hooks.

Related: #6996
Releases: 0.4.1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
to be used in post-sync hooks.

Related: #6996
Releases: 0.4.1
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] Makes request method respect a hard limit</title>
<updated>2015-06-08T18:57:12+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2015-06-08T18:18:00+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=b67648aa666345b0800b48f6c203538b21c9a201'/>
<id>b67648aa666345b0800b48f6c203538b21c9a201</id>
<content type='text'>
Altough we specify maxPersistentPerHost, Twisted won't stop opening
connections after that. This limit is used just to keep the size of
persistent connections pool under control. Additional connections will be
made as non persistent. So, if we ask 10000 requests, it will open 10000
connections immediately and leave 10 open after all finished.
For checking this behavior, see getConnection from Twisted source:
http://twistedmatrix.com/trac/browser/tags/releases/twisted-15.2.1/twisted/web/client.py#L1203
I tested this by using http_target from soledad without a local database to
download all encrypted docs from one account with 1700 of them. The
program just hangs and crashes with 1000+ connections and "Too many
files open" warnings.
With this fix, it was able to download normally, respecting the
maxPersistentPerHost as a limiter. :)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Altough we specify maxPersistentPerHost, Twisted won't stop opening
connections after that. This limit is used just to keep the size of
persistent connections pool under control. Additional connections will be
made as non persistent. So, if we ask 10000 requests, it will open 10000
connections immediately and leave 10 open after all finished.
For checking this behavior, see getConnection from Twisted source:
http://twistedmatrix.com/trac/browser/tags/releases/twisted-15.2.1/twisted/web/client.py#L1203
I tested this by using http_target from soledad without a local database to
download all encrypted docs from one account with 1700 of them. The
program just hangs and crashes with 1000+ connections and "Too many
files open" warnings.
With this fix, it was able to download normally, respecting the
maxPersistentPerHost as a limiter. :)
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] allow ipc socket types</title>
<updated>2015-06-03T18:39:48+00:00</updated>
<author>
<name>Kali Kaneko</name>
<email>kali@leap.se</email>
</author>
<published>2015-06-02T21:27:42+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=76436726663971ebd58bf2c758b52abb10f7c242'/>
<id>76436726663971ebd58bf2c758b52abb10f7c242</id>
<content type='text'>
previous regex wasn't capturing addresses of type ipc://&lt;path&gt;

Closes: #7089
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
previous regex wasn't capturing addresses of type ipc://&lt;path&gt;

Closes: #7089
</pre>
</div>
</content>
</entry>
<entry>
<title>[feat] Make it optional to have a dedicated pool</title>
<updated>2015-06-02T22:28:02+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2015-05-27T20:19:13+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=bf18c2bc6e3f533187281a3b31febd37ef22f8c0'/>
<id>bf18c2bc6e3f533187281a3b31febd37ef22f8c0</id>
<content type='text'>
As @meskio pointed out, some cases could need a dedicated pool with
different parameters.
This is a suggested implementation where the pool is reused by default,
creating a dedicated one just if needed/asked. This way we ensure that
resources are under control and special cases are still handled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As @meskio pointed out, some cases could need a dedicated pool with
different parameters.
This is a suggested implementation where the pool is reused by default,
creating a dedicated one just if needed/asked. This way we ensure that
resources are under control and special cases are still handled.
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] Use BrowserLikePolicyForHTTPS for checking</title>
<updated>2015-06-02T22:25:54+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2015-05-27T15:49:44+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=c071c69e1b5a0d897674a1f7adc6ff32f19400ff'/>
<id>c071c69e1b5a0d897674a1f7adc6ff32f19400ff</id>
<content type='text'>
While testing the way that its implemented now, I found out that no check
is being made on certificate attributes against the host.
I found this simple way of creating a BrowserLikePolicyForHTTPS using
a self signed cert and it worked on my test. I used test_https from
Soledad for checking this (which we are fixing on another branch).

Also, we don't want to depend on twisted for other things than
leap.common.http.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While testing the way that its implemented now, I found out that no check
is being made on certificate attributes against the host.
I found this simple way of creating a BrowserLikePolicyForHTTPS using
a self signed cert and it worked on my test. I used test_https from
Soledad for checking this (which we are fixing on another branch).

Also, we don't want to depend on twisted for other things than
leap.common.http.
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] use dict keys to iterate</title>
<updated>2015-05-28T14:44:06+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2015-05-27T21:51:44+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=7826a96e526a450380917f9b89e3714576ca50b7'/>
<id>7826a96e526a450380917f9b89e3714576ca50b7</id>
<content type='text'>
We ran into a RuntimeError yesterday on this line, the callback can
modify this dict and make the iteration raise an error. Using keys
method to iterate is safer.
See
http://stackoverflow.com/questions/11941817/python-runtimeerror-dictionary-changed-size-during-iteration-how-to-avoid-th/11941855#11941855
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We ran into a RuntimeError yesterday on this line, the callback can
modify this dict and make the iteration raise an error. Using keys
method to iterate is safer.
See
http://stackoverflow.com/questions/11941817/python-runtimeerror-dictionary-changed-size-during-iteration-how-to-avoid-th/11941855#11941855
</pre>
</div>
</content>
</entry>
<entry>
<title>[feat] add initialization of events to BaseLeapTest</title>
<updated>2015-05-27T17:37:29+00:00</updated>
<author>
<name>Ruben Pollan</name>
<email>meskio@sindominio.net</email>
</author>
<published>2015-05-18T22:31:05+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=aacf74601f35511b91a9ac111729c9c2cbf99674'/>
<id>aacf74601f35511b91a9ac111729c9c2cbf99674</id>
<content type='text'>
This is needed to get the tests working on environments where zmq was
not initalizated.

The environment variable XDG_CONFIG_HOME is set to get the leap
configuration in the temp folder.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is needed to get the tests working on environments where zmq was
not initalizated.

The environment variable XDG_CONFIG_HOME is set to get the leap
configuration in the temp folder.
</pre>
</div>
</content>
</entry>
<entry>
<title>[feat] refactor events to use ZMQ</title>
<updated>2015-05-27T17:37:27+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2015-02-04T17:04:10+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=514c1434a016b09d93e8dfc5578b14825d14005a'/>
<id>514c1434a016b09d93e8dfc5578b14825d14005a</id>
<content type='text'>
Before this commit, protobuf and protobuf.socketrpc were used to serialize and
transmit messages between events clients. This change implements a simpler ZMQ
client/server events mechanism that uses ZMQ sockets for transmitting messages
from clients to server and to redistribute such messages to subscribed
clients.

Closes: #6359
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this commit, protobuf and protobuf.socketrpc were used to serialize and
transmit messages between events clients. This change implements a simpler ZMQ
client/server events mechanism that uses ZMQ sockets for transmitting messages
from clients to server and to redistribute such messages to subscribed
clients.

Closes: #6359
</pre>
</div>
</content>
</entry>
<entry>
<title>[refactor] move http twisted code from soledad</title>
<updated>2015-05-27T08:44:47+00:00</updated>
<author>
<name>Ruben Pollan</name>
<email>meskio@sindominio.net</email>
</author>
<published>2015-05-26T20:06:20+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=71c750ef9c3e53ef416d1de6e85458f16ca48d74'/>
<id>71c750ef9c3e53ef416d1de6e85458f16ca48d74</id>
<content type='text'>
Implements an HTTP client the twisted way, with a focus on pinning the
SSL certs.

* Related: #6506
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implements an HTTP client the twisted way, with a focus on pinning the
SSL certs.

* Related: #6506
</pre>
</div>
</content>
</entry>
</feed>
