Permalink
Browse files

Added gevent-zeromq example fixes.

  • Loading branch information...
tmc committed May 10, 2012
1 parent 571fa15 commit 320f0a0cdd9b816ffbeb05eea227dc06613343a1
Showing with 4 additions and 1 deletion.
  1. +2 −0 requirements.txt
  2. +2 −1 tutorial.md
View
@@ -1,3 +1,5 @@
Markdown==2.1.1
cogapp==2.3
Jinja2==2.6
+gevent
+gevent-zeromq
View
@@ -730,6 +730,7 @@ gevent-zeromq``
[[[cog
# Note: Remember to ``pip install pyzmq gevent_zeromq``
+import gevent
from gevent_zeromq import zmq
# Global Context
@@ -747,7 +748,7 @@ def server():
def client():
client_socket = context.socket(zmq.REP)
- client_socket.connect("tcp://*:5000")
+ client_socket.connect("tcp://127.0.0.1:5000")
for request in range(1,10):

0 comments on commit 320f0a0

Please sign in to comment.