Skip to content
This repository was archived by the owner on Sep 12, 2018. It is now read-only.

Commit 6a36b37

Browse files
committed
Merge pull request #670 from chuegle/master
Fixes issue with s3/boto/gevent hanging.
2 parents 6b9749f + 14c3f1a commit 6a36b37

File tree

1 file changed

+7
-0
lines changed
  • docker_registry/drivers

1 file changed

+7
-0
lines changed

docker_registry/drivers/s3.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,13 @@
77
88
"""
99

10+
# This fixes an issue where boto sends unicode to gevent.socket.getaddrinfo in
11+
# an eventlet causing the event pool to hang in a deadlock state.
12+
# This initiates the unicode => idna conversion outside of getaddrinfo,
13+
# preventing the deadlock.
14+
# See https://github.com/gevent/gevent/issues/349 for context.
15+
u'fix for gevent deadlock'.encode('idna')
16+
1017
import gevent.monkey
1118
gevent.monkey.patch_all()
1219

0 commit comments

Comments
 (0)