modifié: superTornado.py
This commit is contained in:
parent
85d85dca5c
commit
f41af6ba65
@ -251,10 +251,10 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
|||||||
socket.setdefaulttimeout(5)
|
socket.setdefaulttimeout(5)
|
||||||
f = urlopen(GlobalVars.urlCamera)
|
f = urlopen(GlobalVars.urlCamera)
|
||||||
data = f.read()
|
data = f.read()
|
||||||
temp.write(data)
|
temp.write(f.read())
|
||||||
#encoded = base64.b64encode(data)
|
encoded = base64.b64encode(data)
|
||||||
f.close()
|
f.close()
|
||||||
self.write_message(data)
|
self.write_message(encoded)
|
||||||
GlobalVars.log.printL( "->Image Data Send : " + self.request.remote_ip, lvl.INFO)
|
GlobalVars.log.printL( "->Image Data Send : " + self.request.remote_ip, lvl.INFO)
|
||||||
except Exception, e :
|
except Exception, e :
|
||||||
GlobalVars.log.printL(e,lvl.FAIL)
|
GlobalVars.log.printL(e,lvl.FAIL)
|
||||||
|
Reference in New Issue
Block a user