Module ImportFrom alias Import alias Import alias ImportFrom alias ImportFrom alias alias alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias alias ImportFrom alias alias alias alias alias ImportFrom alias alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Assign NameStore TupleLoad TupleLoad NameLoad Str Call NameLoad TupleLoad NameLoad Str Call NameLoad TupleLoad NameLoad Call NameLoad Call NameLoad TupleLoad NameLoad Str Call NameLoad For NameStore NameLoad body Assign NameStore Call NameLoad TupleLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assert AttributeLoad AttributeLoad NameLoad attr attr Assert UnaryOpNot Call NameLoad NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assert BoolOpAnd NameLoad Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad GeneratorExp TupleLoad NameLoad Str comprehension NameStore TupleLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Assert UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr Assert AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad NameLoad NameLoad Assert NameLoad Assert Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assert BoolOpAnd NameLoad Call NameLoad AttributeLoad NameLoad attr For NameStore TupleLoad NameLoad NameLoad body Assert CompareEq Str Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad Str NameLoad Num TupleLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assert BoolOpAnd NameLoad Call NameLoad AttributeLoad NameLoad attr For NameStore TupleLoad NameLoad NameLoad body Assert CompareEq Str Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore TupleLoad TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad NameLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad Call NameLoad NameLoad TupleLoad NameLoad Str NameLoad TupleLoad NameLoad Str NameLoad TupleLoad NameLoad Str NameLoad Assign NameStore Call NameLoad NameLoad keyword NameLoad Assert UnaryOpNot AttributeLoad NameLoad attr Assert CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num Assert AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr For NameStore TupleLoad NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assert BoolOpAnd NameLoad Call NameLoad AttributeLoad NameLoad attr For NameStore TupleLoad NameLoad NameLoad body Assert CompareEq Str Call NameLoad NameLoad NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Str NameLoad body Return Call NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body For NameStore NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad orelse If Call NameLoad NameLoad TupleLoad NameLoad NameLoad body Expr Call NameLoad NameLoad Continue orelse If Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Continue Expr Yield NameLoad Expr Call NameLoad Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict NameLoad NameLoad NameLoad Str Str Str If CompareIs NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body Return ListComp SubscriptLoad NameLoad Index Num comprehension TupleStore NameStore NameStore AttributeLoad AttributeLoad NameLoad attr attr BoolOpOr CompareIs NameLoad NameLoad CompareEq AttributeLoad SubscriptLoad NameLoad Index Num attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Return NameLoad Assert NameLoad BinOpMod Str TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore NameLoad Assign NameStore ListLoad For NameStore Call NameLoad AttributeLoad NameLoad attr NameLoad body If CompareEq AttributeLoad NameLoad attr NameLoad body Assert UnaryOpNot NameLoad Str If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore NameLoad Assert NameLoad Str Return Call AttributeLoad Str attr NameLoad decorator_list Assign NameStore AttributeLoad Call NameLoad Num attr If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr
N/A __future__ absolute_import N/A unittest N/A mock itertools count gevent sleep spawn event gevent_fastcgi.const FCGI_RESPONDER FCGI_FILTER FCGI_AUTHORIZER FCGI_MAX_CONNS FCGI_MAX_REQS FCGI_MPXS_CONNS FCGI_NULL_REQUEST_ID FCGI_KEEP_CONN FCGI_GET_VALUES FCGI_GET_VALUES_RESULT FCGI_BEGIN_REQUEST FCGI_END_REQUEST FCGI_ABORT_REQUEST FCGI_UNKNOWN_ROLE FCGI_UNKNOWN_TYPE FCGI_PARAMS FCGI_STDIN FCGI_STDOUT FCGI_STDERR FCGI_DATA gevent_fastcgi.base InputStream Record gevent_fastcgi.utils pack_begin_request pack_pairs unpack_pairs unpack_end_request unpack_unknown_type gevent_fastcgi.server ConnectionHandler ServerConnection utils pack_env ConnectionHandlerTests N/A N/A unittest TestCase N/A test_unknown_request N/A N/A self N/A N/A N/A records N/A N/A FCGI_STDIN N/A next_req_id N/A FCGI_ABORT_REQUEST N/A next_req_id N/A FCGI_PARAMS N/A pack_env N/A next_req_id N/A FCGI_DATA data N/A next_req_id N/A rec records N/A N/A handler N/A run_handler N/A rec N/A conn N/A handler conn N/A N/A N/A conn close called N/A N/A N/A read_records conn N/A N/A N/A handler requests N/A N/A N/A N/A handler request_handler called N/A test_unknown_record_type N/A N/A self N/A N/A N/A rec_type 123 N/A records N/A N/A rec_type N/A handler N/A run_handler records N/A rec N/A find_rec handler FCGI_UNKNOWN_TYPE N/A N/A rec N/A unpack_unknown_type N/A rec content N/A test_get_values N/A N/A self N/A N/A N/A req_id next_req_id N/A records N/A N/A FCGI_GET_VALUES N/A pack_pairs N/A N/A name N/A name N/A FCGI_MAX_CONNS FCGI_MAX_REQS FCGI_MPXS_CONNS N/A handler N/A run_handler records N/A N/A N/A handler requests N/A N/A N/A N/A handler request_handler called N/A N/A N/A N/A handler conn close called N/A rec N/A find_rec handler FCGI_GET_VALUES_RESULT N/A rec N/A N/A unpack_pairs N/A rec content N/A test_request N/A N/A self N/A N/A N/A req_id N/A next_req_id N/A role FCGI_RESPONDER N/A flags 0 N/A records N/A N/A FCGI_BEGIN_REQUEST N/A pack_begin_request role flags req_id N/A FCGI_PARAMS N/A pack_env req_id N/A FCGI_PARAMS req_id N/A handler N/A run_handler records role role N/A N/A N/A handler requests N/A N/A N/A N/A handler request_handler call_count 1 N/A N/A N/A N/A handler conn close called N/A rec N/A find_rec handler FCGI_END_REQUEST req_id N/A N/A rec N/A unpack_end_request N/A rec content N/A stream N/A FCGI_STDOUT FCGI_STDERR N/A N/A N/A N/A read_stream handler stream req_id N/A test_abort_request N/A N/A self N/A N/A N/A req_id N/A next_req_id N/A role FCGI_RESPONDER N/A flags 0 N/A records N/A N/A FCGI_BEGIN_REQUEST N/A pack_begin_request role flags req_id N/A FCGI_PARAMS N/A pack_env req_id N/A FCGI_PARAMS req_id 0.1 N/A FCGI_ABORT_REQUEST req_id N/A handler N/A run_handler records role role request_handler copy_stdin_to_stdout N/A rec N/A find_rec handler FCGI_END_REQUEST req_id N/A N/A rec N/A unpack_end_request N/A rec content N/A stream N/A FCGI_STDOUT FCGI_STDERR N/A N/A N/A N/A read_stream handler stream req_id N/A test_request_multiplexing N/A N/A self N/A N/A N/A req_id N/A next_req_id N/A req_id_2 N/A next_req_id N/A req_id_3 N/A next_req_id N/A role FCGI_RESPONDER N/A flags 0 N/A records N/A N/A FCGI_BEGIN_REQUEST N/A pack_begin_request role flags req_id N/A FCGI_PARAMS N/A pack_env req_id N/A FCGI_BEGIN_REQUEST N/A pack_begin_request role flags req_id_2 N/A FCGI_BEGIN_REQUEST N/A pack_begin_request role flags req_id_3 N/A FCGI_PARAMS N/A pack_env req_id_3 N/A FCGI_PARAMS N/A pack_env req_id_2 N/A FCGI_PARAMS req_id_2 N/A FCGI_PARAMS req_id N/A FCGI_ABORT_REQUEST req_id_3 N/A handler N/A run_handler records role role N/A N/A N/A handler requests N/A N/A N/A N/A handler request_handler call_count 2 N/A N/A N/A N/A handler conn close called N/A r_id N/A req_id req_id_2 req_id_3 N/A N/A rec N/A find_rec handler FCGI_END_REQUEST r_id N/A N/A rec N/A unpack_end_request N/A rec content N/A stream N/A FCGI_STDOUT FCGI_STDERR N/A N/A N/A N/A read_stream handler stream r_id N/A N/A copy_stdin_to_stdout N/A N/A request N/A N/A N/A 
    Simple request handler
     N/A N/A N/A N/A request stdout write N/A N/A N/A request stdin read N/A make_record N/A N/A record_type content request_id N/A FCGI_NULL_REQUEST_ID N/A N/A N/A Record record_type content request_id N/A iter_records N/A N/A records done N/A None N/A N/A rec records N/A N/A N/A isinstance rec tuple N/A N/A rec N/A make_record rec N/A N/A N/A isinstance rec N/A int float N/A N/A N/A sleep rec N/A N/A N/A N/A isinstance rec N/A event Event N/A N/A N/A N/A rec set N/A N/A N/A rec N/A N/A sleep 0 N/A run_handler N/A N/A records role request_handler capabilities timeout N/A FCGI_RESPONDER None None None N/A N/A conn N/A N/A mock MagicMock N/A N/A N/A conn __iter__ return_value N/A iter_records records N/A N/A capabilities None N/A N/A capabilities N/A FCGI_MAX_CONNS FCGI_MAX_REQS FCGI_MPXS_CONNS 1 1 0 N/A N/A request_handler None N/A N/A request_handler N/A N/A mock MagicMock N/A handler N/A ConnectionHandler conn role capabilities request_handler N/A g N/A spawn N/A handler run N/A N/A N/A g join timeout N/A handler N/A read_records N/A N/A conn req_id N/A None N/A N/A N/A N/A args N/A 0 N/A N/A args kw N/A N/A conn write_record call_args_list N/A N/A req_id None N/A N/A N/A args N/A 0 request_id req_id N/A find_rec N/A N/A handler rec_type req_id N/A FCGI_NULL_REQUEST_ID N/A N/A records N/A read_records N/A handler conn req_id N/A rec records N/A N/A N/A N/A rec type rec_type N/A N/A rec N/A False N/A No %s record found in %r N/A rec_type records N/A read_stream N/A N/A handler rec_type req_id N/A N/A N/A closed False N/A content N/A N/A rec N/A read_records N/A handler conn req_id N/A N/A N/A N/A rec type rec_type N/A N/A N/A closed Stream is already closed N/A N/A rec content N/A N/A N/A N/A content append N/A rec content N/A N/A closed True N/A closed Stream was not closed N/A N/A N/A join content N/A N/A next_req_id N/A N/A count 1 next N/A N/A __name__ __main__ N/A N/A N/A N/A unittest main