<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/docker-py.git/docker/utils/socket.py, branch main</title>
<subtitle>github.com: dotcloud/docker-py.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/'/>
<entry>
<title>api: avoid socket timeouts when executing commands (#3125)</title>
<updated>2023-05-11T17:36:37+00:00</updated>
<author>
<name>loicleyendecker</name>
<email>loicleyendecker@users.noreply.github.com</email>
</author>
<published>2023-05-11T17:36:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=c5e582c413a4a3a9eff6ee8208d195f657ffda94'/>
<id>c5e582c413a4a3a9eff6ee8208d195f657ffda94</id>
<content type='text'>
Only listen to read events when polling a socket in order
to avoid incorrectly trying to read from a socket that is
not actually ready.

Signed-off-by: Loïc Leyendecker &lt;loic.leyendecker@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Only listen to read events when polling a socket in order
to avoid incorrectly trying to read from a socket that is
not actually ready.

Signed-off-by: Loïc Leyendecker &lt;loic.leyendecker@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>socket: use poll() instead of select() except on Windows (#2865)</title>
<updated>2023-04-21T21:53:58+00:00</updated>
<author>
<name>I-question-this</name>
<email>tylerofthewest@gmail.com</email>
</author>
<published>2023-04-21T21:53:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=a02ba743338c27fd9348af2cf7767b140501734d'/>
<id>a02ba743338c27fd9348af2cf7767b140501734d</id>
<content type='text'>
Fixes #2278, which was originally addressed in #2279, but was not
properly merged. Additionally it did not address the problem
of poll not existing on Windows. This patch falls back on the
more limited select method if host system is Windows.

Signed-off-by: Tyler Westland &lt;tylerofthewest@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes #2278, which was originally addressed in #2279, but was not
properly merged. Additionally it did not address the problem
of poll not existing on Windows. This patch falls back on the
more limited select method if host system is Windows.

Signed-off-by: Tyler Westland &lt;tylerofthewest@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>socket: fix for errors on pipe close in Windows (#3099)</title>
<updated>2023-02-22T17:00:47+00:00</updated>
<author>
<name>Milas Bowman</name>
<email>milas.bowman@docker.com</email>
</author>
<published>2023-02-22T17:00:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=f84623225e0227adde48ffd8f2e1cafb1f9aa38d'/>
<id>f84623225e0227adde48ffd8f2e1cafb1f9aa38d</id>
<content type='text'>
Need to return data, not size. By returning an empty
string, EOF will be detected properly since `len()`
will be `0`.

Fixes #3098.

Signed-off-by: Milas Bowman &lt;milas.bowman@docker.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Need to return data, not size. By returning an empty
string, EOF will be detected properly since `len()`
will be `0`.

Fixes #3098.

Signed-off-by: Milas Bowman &lt;milas.bowman@docker.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>socket: handle npipe close on Windows (#3056)</title>
<updated>2022-11-02T19:31:00+00:00</updated>
<author>
<name>Nick Santos</name>
<email>nick.santos@docker.com</email>
</author>
<published>2022-11-02T19:31:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=30022984f6445fbc322cbe97bb99aab1ddb1e4fd'/>
<id>30022984f6445fbc322cbe97bb99aab1ddb1e4fd</id>
<content type='text'>
Fixes https://github.com/docker/docker-py/issues/3045

Signed-off-by: Nick Santos &lt;nick.santos@docker.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes https://github.com/docker/docker-py/issues/3045

Signed-off-by: Nick Santos &lt;nick.santos@docker.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>use python3.6+ constructs</title>
<updated>2021-07-05T22:30:07+00:00</updated>
<author>
<name>Anthony Sottile</name>
<email>asottile@umich.edu</email>
</author>
<published>2021-07-05T22:24:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=5fcc293ba268a89ea1535114d36fbdcb73ec3d88'/>
<id>5fcc293ba268a89ea1535114d36fbdcb73ec3d88</id>
<content type='text'>
Signed-off-by: Anthony Sottile &lt;asottile@umich.edu&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Anthony Sottile &lt;asottile@umich.edu&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>fix exec api inconsistency</title>
<updated>2018-11-28T23:16:23+00:00</updated>
<author>
<name>Corentin Henry</name>
<email>corentinhenry@gmail.com</email>
</author>
<published>2018-11-28T22:32:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=7b3b83dfdbb9f4270dcf54e1449645efc045dfd3'/>
<id>7b3b83dfdbb9f4270dcf54e1449645efc045dfd3</id>
<content type='text'>
Signed-off-by: Corentin Henry &lt;corentinhenry@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Corentin Henry &lt;corentinhenry@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>add tests for _read_from_socket</title>
<updated>2018-11-28T21:37:10+00:00</updated>
<author>
<name>Corentin Henry</name>
<email>corentinhenry@gmail.com</email>
</author>
<published>2018-11-28T01:01:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=6540900dae21571a60fd92037e926cd6599a52eb'/>
<id>6540900dae21571a60fd92037e926cd6599a52eb</id>
<content type='text'>
Check that the return value against the various combination of
parameters this function can take (tty, stream, and demux).

This commit also fixes a bug that the tests uncovered a bug in
consume_socket_output.

Signed-off-by: Corentin Henry &lt;corentinhenry@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Check that the return value against the various combination of
parameters this function can take (tty, stream, and demux).

This commit also fixes a bug that the tests uncovered a bug in
consume_socket_output.

Signed-off-by: Corentin Henry &lt;corentinhenry@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>implement stream demultiplexing for exec commands</title>
<updated>2018-11-28T01:01:48+00:00</updated>
<author>
<name>Corentin Henry</name>
<email>corentinhenry@gmail.com</email>
</author>
<published>2018-10-08T18:02:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=5f157bbaca5ae62a5bb71547106beb6ef02bc485'/>
<id>5f157bbaca5ae62a5bb71547106beb6ef02bc485</id>
<content type='text'>
fixes https://github.com/docker/docker-py/issues/1952

Signed-off-by: Corentin Henry &lt;corentinhenry@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
fixes https://github.com/docker/docker-py/issues/1952

Signed-off-by: Corentin Henry &lt;corentinhenry@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix socket reading function for TCP (non-HTTPS) connections on Windows</title>
<updated>2018-06-07T00:53:50+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-06-05T17:51:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=dbe52dcb7d5765352faa43ab0210fddbcb546431'/>
<id>dbe52dcb7d5765352faa43ab0210fddbcb546431</id>
<content type='text'>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Remove redundant single-socket select call</title>
<updated>2018-03-20T08:25:29+00:00</updated>
<author>
<name>Joffrey F</name>
<email>joffrey@docker.com</email>
</author>
<published>2018-03-19T13:40:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/docker-py.git/commit/?id=284c3d90d6ab1c49410d5622ca8cd3f37dcbe296'/>
<id>284c3d90d6ab1c49410d5622ca8cd3f37dcbe296</id>
<content type='text'>
Clean up + use pytest-timeout

Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clean up + use pytest-timeout

Signed-off-by: Joffrey F &lt;joffrey@docker.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
