minor fixes
This commit is contained in:
parent
f61109db84
commit
8fa01f41a6
|
@ -1,7 +1,9 @@
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from netlib import tcp, http, wsgi, certutils, websockets
|
from netlib import websockets
|
||||||
from .. import version, app, language, utils, log
|
from .. import language
|
||||||
|
from netlib.exceptions import NetlibException
|
||||||
|
|
||||||
|
|
||||||
class WebsocketsProtocol:
|
class WebsocketsProtocol:
|
||||||
|
|
||||||
|
@ -14,7 +16,7 @@ class WebsocketsProtocol:
|
||||||
started = time.time()
|
started = time.time()
|
||||||
try:
|
try:
|
||||||
frm = websockets.Frame.from_file(self.pathod_handler.rfile)
|
frm = websockets.Frame.from_file(self.pathod_handler.rfile)
|
||||||
except tcp.NetLibIncomplete as e:
|
except NetlibException as e:
|
||||||
lg("Error reading websocket frame: %s" % e)
|
lg("Error reading websocket frame: %s" % e)
|
||||||
break
|
break
|
||||||
ended = time.time()
|
ended = time.time()
|
||||||
|
|
Loading…
Reference in New Issue