aio-libs / aio-libs/aiodocker

Event streaming hangs waiting for newline in Docker Desktop for Mac 2.2.0

オープン
#405 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug recheck-required
主要言語
Python
スター
537
フォーク
118
PR マージ指標
30日以内にマージされた PR はありません

説明

As currently written, aiodocker expects docker events to be separated by newlines -- jsonstream.py calls `response.content.readline()`. For reference, docker-py reads chunked data and uses `JSONDecoder.raw_decode()` in case there are extra characters.

The downsides of this assumption (newline delimiters) are documented [in this moby issue (20119)](https://github.com/moby/moby/issues/20119).

In any case, Docker Desktop for Mac 2.2.0.0 causes aiodocker to hang waiting for a newline which never occurs even while multiple events are received.

Docker Desktop for Mac 2.1.0.5 works without issue and apparently separates events by newlines.

Python 3.7.5
MacOS 10.15.3
Docker Desktop for Mac 2.2.0
aiodocker 3.6.2

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。