firefoxbug
firefoxbug
I want to print packages' byes in lua and in my nginx.conf is: location /test_lua{ .... content_by_lua' ngx.say("uri : ", ngx.var.uri) ngx.say("status : ", ngx.var.status) ngx.say("bytes sent: ", ngx.var.bytes_sent) ngx.say("body...
``` import gevent.monkey gevent.monkey.patch_all() import gevent import socket def listen_sock(port): host='127.0.0.1' port=port s=socket.socket(socket.AF_INET,socket.SOCK_STREAM) s.bind((host,port)) s.listen(5) while True: print "start to listen" conn,add = s.accept() print conn,add while True: print conn.recv(1024)...
hi,I have a question when using your awesome FSM, I want the code works like: ``` state = STATE_A if condition_test(): state = STATE_B else: state = STATE_C ``` I...
Hi, dear tyarkoni I have another question whiling using your FSM, I want to achieve like this: start a task to wget a large file, and then to check is...