Module Import alias Import alias ImportFrom alias alias ImportFrom alias ImportFrom alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad ClassDef bases NameLoad body Expr Str Expr Call NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr BinOpPow Num Num Assign AttributeStore NameLoad attr Dict Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Num AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body ImportFrom alias If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Slice AttributeLoad NameLoad attr If CompareNotEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assert CompareIs NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr FunctionDef arguments args defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list Expr Call AttributeLoad NameLoad attr Num NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad If CompareIs AttributeLoad NameLoad attr NameLoad body Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIsNot NameLoad NameLoad body Assign AttributeStore NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIsNot AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad AttributeLoad NameLoad attr orelse Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign AttributeStore NameLoad attr BinOpAdd AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Dict For TupleStore NameStore NameStore NameLoad body If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Return NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore DictComp NameLoad SubscriptLoad NameLoad Index NameLoad comprehension NameStore NameLoad CompareIn NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list decorator_list
N/A N/A json N/A logging twisted.internet interfaces defer zope.interface implements lbrynet.interfaces IRequestHandler N/A log N/A N/A logging getLogger __name__ ServerRequestHandler N/A object N/A N/A This class handles requests from clients. It can upload blobs and return request for information about
    more blobs that are associated with streams N/A N/A implements N/A interfaces IPushProducer N/A interfaces IConsumer IRequestHandler __init__ N/A N/A self consumer N/A N/A N/A N/A self consumer consumer N/A N/A self production_paused False N/A N/A self request_buff N/A N/A self response_buff N/A N/A self producer None N/A N/A self request_received False N/A N/A self CHUNK_SIZE N/A 2 14 N/A N/A self query_handlers N/A N/A N/A self blob_sender None N/A N/A N/A N/A self consumer registerProducer self True N/A pauseProducing N/A N/A self N/A N/A N/A N/A self production_paused True N/A stopProducing N/A N/A self N/A N/A N/A N/A N/A self producer None N/A N/A N/A N/A N/A self producer stopProducing N/A N/A self producer None N/A N/A self production_paused True N/A N/A N/A N/A self consumer unregisterProducer N/A resumeProducing N/A N/A self N/A N/A twisted.internet reactor N/A N/A self production_paused False N/A N/A N/A self _produce_more N/A N/A N/A self producer None N/A N/A N/A N/A reactor callLater 0 N/A N/A self producer resumeProducing N/A _produce_more N/A N/A self N/A N/A twisted.internet reactor N/A N/A N/A self production_paused False N/A N/A chunk N/A N/A self response_buff N/A N/A self CHUNK_SIZE N/A N/A self response_buff N/A N/A self response_buff N/A N/A self CHUNK_SIZE N/A N/A chunk N/A N/A N/A N/A log debug writing %s bytes to the client N/A str N/A len chunk N/A N/A N/A N/A self consumer write chunk N/A N/A N/A reactor callLater 0 N/A self _produce_more N/A registerProducer N/A N/A self producer streaming N/A N/A N/A N/A self producer producer N/A N/A streaming False N/A N/A N/A producer resumeProducing N/A unregisterProducer N/A N/A self N/A N/A N/A N/A self producer None N/A write N/A N/A self data N/A N/A twisted.internet reactor N/A N/A self response_buff N/A N/A self response_buff data N/A N/A N/A self _produce_more get_more_data N/A N/A N/A N/A N/A N/A N/A self producer None N/A N/A N/A N/A log debug Requesting more data from the producer N/A N/A N/A N/A self producer resumeProducing N/A N/A N/A N/A reactor callLater 0 get_more_data N/A data_received N/A N/A self data N/A N/A N/A N/A N/A log debug Received data N/A N/A N/A log debug %s N/A str data N/A N/A N/A self request_received False N/A N/A N/A self request_buff N/A N/A self request_buff data N/A msg N/A N/A self try_to_parse_request N/A self request_buff N/A N/A msg None N/A N/A N/A self request_buff N/A d N/A N/A self handle_request msg N/A N/A N/A self blob_sender None N/A N/A N/A N/A d addCallback N/A N/A N/A _ N/A N/A N/A N/A self blob_sender send_blob_if_requested self N/A N/A N/A d addCallbacks N/A N/A N/A _ N/A N/A N/A self finished_response N/A self request_failure_handler N/A N/A N/A N/A log info Request buff not a valid json message N/A N/A N/A log info Request buff: %s N/A str N/A self request_buff N/A N/A N/A N/A log warning The client sent data when we were uploading a file. This should not happen N/A register_query_handler N/A N/A self query_handler query_identifiers N/A N/A N/A N/A N/A self query_handlers N/A query_handler query_identifiers N/A register_blob_sender N/A N/A self blob_sender N/A N/A N/A N/A self blob_sender blob_sender N/A request_failure_handler N/A N/A self err N/A N/A N/A N/A N/A log warning An error occurred handling a request. Error: %s N/A N/A err getErrorMessage N/A N/A N/A self stopProducing N/A err N/A finished_response N/A N/A self N/A N/A N/A N/A self request_received False N/A N/A N/A self _produce_more N/A send_response N/A N/A self msg N/A N/A N/A m N/A N/A json dumps msg N/A N/A N/A log info Sending a response of length %s N/A str N/A len m N/A N/A N/A log debug Response: %s N/A str m N/A N/A self response_buff N/A N/A self response_buff m N/A N/A N/A self _produce_more N/A True N/A handle_request N/A N/A self msg N/A N/A N/A N/A N/A log debug Handling a request N/A N/A N/A log debug N/A str msg create_response_message N/A N/A results N/A N/A N/A response N/A N/A N/A success result results N/A N/A N/A success True N/A N/A N/A N/A response update result N/A N/A result N/A N/A N/A log debug Finished making the response message. Response: %s N/A str response N/A response N/A log_errors N/A N/A err N/A N/A N/A N/A N/A log warning An error occurred handling a client request. Error message: %s N/A N/A err getErrorMessage N/A err N/A send_response N/A N/A response N/A N/A N/A N/A N/A self send_response response N/A True N/A N/A ds N/A N/A N/A query_handler query_identifiers N/A N/A N/A self query_handlers iteritems N/A N/A queries N/A q_i N/A msg N/A q_i N/A q_i query_identifiers N/A q_i msg N/A d N/A N/A query_handler handle_queries queries N/A N/A N/A d addErrback log_errors N/A N/A N/A ds append d N/A dl N/A N/A defer DeferredList ds N/A N/A N/A dl addCallback create_response_message N/A N/A N/A dl addCallback send_response N/A dl N/A try_to_parse_request N/A N/A self request_buff N/A N/A N/A N/A N/A msg N/A N/A json loads request_buff N/A msg N/A N/A N/A ValueError N/A N/A None N/A N/A