python - BaseHTTPRequestHandler parse_request() never returns -


i'm totally new python , trying create sublime plugin needs websocket server. found this , tried port python 3 (originally written in 2?) , run problem following code:

class httprequest(http.server.basehttprequesthandler):    def __init__(self, request_text):       self.rfile = stringio(request_text)       self.raw_requestline = self.rfile.readline()       self.error_code = self.error_message = none       print('before')       self.parse_request()       print('after') # never reached! 

taken here.

the parse_reqeust() method never returns. 'after' never printed. point me in right direction how debug things in python?

(the technique above seems come this post)


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -