Skip to content

Instantly share code, notes, and snippets.

View dvarrazzo's full-sized avatar

Daniele Varrazzo dvarrazzo

View GitHub Profile
@dvarrazzo
dvarrazzo / rtdealer.py
Created April 2, 2012 20:12
syncing over tcp appears working
#!/usr/bin/env python
"""
This script should be a test in synchronizing zmq sockets.
Synchronization fails even if the threads prepare the subscriber before
signaling they are ready.
"""
import sys
import random
@dvarrazzo
dvarrazzo / hwclient.py
Created March 31, 2012 20:48
zmq eventlet tests
import sys
import zmq
try:
n = int(sys.argv[1])
except:
n = 10
ctx = zmq.Context()