/usr/lib64/python3.9/asyncio/__pycache__
NameSizeModeActions
base_events.cpython-39.opt-1.pyc521760644editdlrm
base_events.cpython-39.opt-2.pyc431470644editdlrm
base_events.cpython-39.pyc523000644editdlrm
base_futures.cpython-39.opt-1.pyc19100644editdlrm
base_futures.cpython-39.opt-2.pyc16560644editdlrm
base_futures.cpython-39.pyc19100644editdlrm
base_subprocess.cpython-39.opt-1.pyc93420644editdlrm
base_subprocess.cpython-39.opt-2.pyc92420644editdlrm
base_subprocess.cpython-39.pyc94120644editdlrm
base_tasks.cpython-39.opt-1.pyc19460644editdlrm
base_tasks.cpython-39.opt-2.pyc19460644editdlrm
base_tasks.cpython-39.pyc19460644editdlrm
constants.cpython-39.opt-1.pyc5830644editdlrm
constants.cpython-39.opt-2.pyc5830644editdlrm
constants.cpython-39.pyc5830644editdlrm
coroutines.cpython-39.opt-1.pyc65750644editdlrm
coroutines.cpython-39.opt-2.pyc63430644editdlrm
coroutines.cpython-39.pyc66390644editdlrm
events.cpython-39.opt-1.pyc280780644editdlrm
events.cpython-39.opt-2.pyc189810644editdlrm
events.cpython-39.pyc281600644editdlrm
exceptions.cpython-39.opt-1.pyc25550644editdlrm
exceptions.cpython-39.opt-2.pyc19110644editdlrm
exceptions.cpython-39.pyc25550644editdlrm
format_helpers.cpython-39.opt-1.pyc23260644editdlrm
format_helpers.cpython-39.opt-2.pyc20820644editdlrm
format_helpers.cpython-39.pyc23260644editdlrm
futures.cpython-39.opt-1.pyc116270644editdlrm
futures.cpython-39.opt-2.pyc81210644editdlrm
futures.cpython-39.pyc117780644editdlrm
locks.cpython-39.opt-1.pyc144660644editdlrm
locks.cpython-39.opt-2.pyc82290644editdlrm
locks.cpython-39.pyc144660644editdlrm
log.cpython-39.opt-1.pyc2280644editdlrm
log.cpython-39.opt-2.pyc1890644editdlrm
log.cpython-39.pyc2280644editdlrm
proactor_events.cpython-39.opt-1.pyc241860644editdlrm
proactor_events.cpython-39.opt-2.pyc237860644editdlrm
proactor_events.cpython-39.pyc244160644editdlrm
protocols.cpython-39.opt-1.pyc84370644editdlrm
protocols.cpython-39.opt-2.pyc33570644editdlrm
protocols.cpython-39.pyc84370644editdlrm
queues.cpython-39.opt-1.pyc84660644editdlrm
queues.cpython-39.opt-2.pyc57870644editdlrm
queues.cpython-39.pyc84660644editdlrm
runners.cpython-39.opt-1.pyc22090644editdlrm
runners.cpython-39.opt-2.pyc15270644editdlrm
runners.cpython-39.pyc22090644editdlrm
selector_events.cpython-39.opt-1.pyc296740644editdlrm
selector_events.cpython-39.opt-2.pyc280280644editdlrm
selector_events.cpython-39.pyc297180644editdlrm
sslproto.cpython-39.opt-1.pyc217240644editdlrm
sslproto.cpython-39.opt-2.pyc147730644editdlrm
sslproto.cpython-39.pyc218880644editdlrm
staggered.cpython-39.opt-1.pyc40090644editdlrm
staggered.cpython-39.opt-2.pyc18760644editdlrm
staggered.cpython-39.pyc41620644editdlrm
streams.cpython-39.opt-1.pyc203610644editdlrm
streams.cpython-39.opt-2.pyc144670644editdlrm
streams.cpython-39.pyc205880644editdlrm
subprocess.cpython-39.opt-1.pyc73230644editdlrm
subprocess.cpython-39.opt-2.pyc71950644editdlrm
subprocess.cpython-39.pyc73370644editdlrm
tasks.cpython-39.opt-1.pyc242490644editdlrm
tasks.cpython-39.opt-2.pyc169980644editdlrm
tasks.cpython-39.pyc242890644editdlrm
threads.cpython-39.opt-1.pyc9800644editdlrm
threads.cpython-39.opt-2.pyc5140644editdlrm
threads.cpython-39.pyc9800644editdlrm
transports.cpython-39.opt-1.pyc125220644editdlrm
transports.cpython-39.opt-2.pyc69720644editdlrm
transports.cpython-39.pyc125360644editdlrm
trsock.cpython-39.opt-1.pyc85710644editdlrm
trsock.cpython-39.opt-2.pyc83150644editdlrm
trsock.cpython-39.pyc85710644editdlrm
unix_events.cpython-39.opt-1.pyc417260644editdlrm
unix_events.cpython-39.opt-2.pyc365030644editdlrm
unix_events.cpython-39.pyc420460644editdlrm
windows_events.cpython-39.opt-1.pyc247170644editdlrm
windows_events.cpython-39.opt-2.pyc236100644editdlrm
windows_events.cpython-39.pyc247330644editdlrm
windows_utils.cpython-39.opt-1.pyc44370644editdlrm
windows_utils.cpython-39.opt-2.pyc40030644editdlrm
windows_utils.cpython-39.pyc45050644editdlrm
__init__.cpython-39.opt-1.pyc7810644editdlrm
__init__.cpython-39.opt-2.pyc7250644editdlrm
__init__.cpython-39.pyc7810644editdlrm
__main__.cpython-39.opt-1.pyc32120644editdlrm
__main__.cpython-39.opt-2.pyc32120644editdlrm
__main__.cpython-39.pyc32120644editdlrm
Edit: /usr/lib64/python3.9/asyncio/__pycache__/base_events.cpython-39.opt-2.pyc (43147B)
a ´iÐ!ã@sèddlZddlZddlZddlZddlZddlZddlZddlZddl Z ddl Z ddl Z ddl Z ddl Z ddlZddlZddlZz ddlZWney¢dZYn0ddlmZddlmZddlmZddlmZddlmZddlmZdd lmZdd lmZdd lmZdd lmZdd lmZddlm Z dZ!dZ"dZ#e$edƒZ%dZ&e'ƒZ(dd„Z)dd„Z*dd„Z+d,dd„Z,d-dd„Z-dd„Z.e$ed ƒ�ržd!d"„Z/nd#d"„Z/d$d%„Z0Gd&d'„d'ej1ƒZ2Gd(d)„d)ej3ƒZ4Gd*d+„d+ej5ƒZ6dS).éNé)Ú constants)Ú coroutines)Úevents)Ú exceptions)Úfutures)Ú protocols)Ússlproto)Ú staggered)Útasks)Ú transports)Útrsock)Úlogger)Ú BaseEventLoopÚServerédgà?ÚAF_INET6i€QcCs0|j}tt|ddƒtjƒr$t|jƒSt|ƒSdS)NÚ__self__)Ú _callbackÚ isinstanceÚgetattrr ÚTaskÚreprrÚstr)ÚhandleÚcb©rú+/usr/lib64/python3.9/asyncio/base_events.pyÚ_format_handleJs rcCs(|tjkrdS|tjkrdSt|ƒSdS)Nzz)Ú subprocessÚPIPEÚSTDOUTr)ÚfdrrrÚ _format_pipeSs   r#cCsJttdƒstdƒ‚n2z| tjtjd¡WntyDtdƒ‚Yn0dS)NÚ SO_REUSEPORTz)reuse_port not supported by socket modulerzTreuse_port not supported by socket module, SO_REUSEPORT defined but not implemented.)ÚhasattrÚsocketÚ ValueErrorÚ setsockoptÚ SOL_SOCKETr$ÚOSError©ÚsockrrrÚ_set_reuseport\s    r-c Cs€ttdƒsdS|dtjtjhvs(|dur,dS|tjkr>tj}n|tjkrPtj}ndS|durbd}nVt|tƒrz|dkrzd}n>t|tƒr’|dkr’d}n&z t |ƒ}Wnt t fy¶YdS0|tj krÜtj g}trâ| tj¡n|g}t|tƒrö| d¡}d|v�rdS|D]r}zVt ||¡t�rH|tjk�rH|||d||||ffWS|||d||ffWSWnt�yvYn0�qdS)NÚ inet_ptonróÚZidnaú%)r%r&Ú IPPROTO_TCPÚ IPPROTO_UDPÚ SOCK_STREAMÚ SOCK_DGRAMrÚbytesrÚintÚ TypeErrorr'Ú AF_UNSPECÚAF_INETÚ _HAS_IPv6ÚappendrÚdecoder.r*) ÚhostÚportÚfamilyÚtypeÚprotoZflowinfoZscopeidZafsÚafrrrÚ _ipaddr_infogsN ÿ         rDcCs¢t ¡}|D]*}|d}||vr(g||<|| |¡q t| ¡ƒ}g}|dkr|| |dd|d…¡|dd|d…=| dd„tj tj |Ž¡Dƒ¡|S)Nrrcss|]}|dur|VqdS©Nr)Ú.0ÚarrrÚ ±sþz(_interleave_addrinfos..) Ú collectionsÚ OrderedDictr<ÚlistÚvaluesÚextendÚ itertoolsÚchainÚ from_iterableÚ zip_longest)Z addrinfosZfirst_address_family_countZaddrinfos_by_familyÚaddrr@Zaddrinfos_listsZ reorderedrrrÚ_interleave_addrinfos¢s"  ÿÿrScCs4| ¡s"| ¡}t|ttfƒr"dSt |¡ ¡dSrE)Ú cancelledÚ exceptionrÚ SystemExitÚKeyboardInterruptrZ _get_loopÚstop)ÚfutÚexcrrrÚ_run_until_complete_cb¸s r[Ú TCP_NODELAYcCs@|jtjtjhvr<|jtjkr<|jtjkr<| tjtj d¡dS©Nr) r@r&r:rrAr4rBr2r(r\r+rrrÚ _set_nodelayÃs  ÿ þr^cCsdSrErr+rrrr^ÉscCs tdurt|tjƒrtdƒ‚dS)Nz"Socket cannot be of type SSLSocket)ÚsslrZ SSLSocketr8r+rrrÚ_check_ssl_socketÍsr`c@sTeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z dd„Z dS)Ú_SendfileFallbackProtocolcCsht|tjƒstdƒ‚||_| ¡|_| ¡|_|j |_ |  ¡|  |¡|j r^|jj  ¡|_nd|_dS)Nz.transport should be _FlowControlMixin instance)rr Z_FlowControlMixinr8Ú _transportZ get_protocolÚ_protoZ is_readingÚ_should_resume_readingZ_protocol_pausedÚ_should_resume_writingÚ pause_readingÚ set_protocolÚ_loopÚ create_futureÚ_write_ready_fut)ÚselfÚtransprrrÚ__init__Ós    z"_SendfileFallbackProtocol.__init__cÃs2|j ¡rtdƒ‚|j}|dur$dS|IdHdS)NzConnection closed by peer)rbÚ is_closingÚConnectionErrorrj)rkrYrrrÚdrainás  z_SendfileFallbackProtocol.draincCs tdƒ‚dS)Nz?Invalid state: connection should have been established already.©Ú RuntimeError)rkÚ transportrrrÚconnection_madeész)_SendfileFallbackProtocol.connection_madecCs@|jdur0|dur$|j tdƒ¡n |j |¡|j |¡dS)NzConnection is closed by peer)rjÚ set_exceptionrorcÚconnection_lost)rkrZrrrrvís ÿ z)_SendfileFallbackProtocol.connection_lostcCs |jdurdS|jj ¡|_dSrE)rjrbrhri©rkrrrÚ pause_writingøs z'_SendfileFallbackProtocol.pause_writingcCs$|jdurdS|j d¡d|_dS)NF)rjÚ set_resultrwrrrÚresume_writingýs  z(_SendfileFallbackProtocol.resume_writingcCs tdƒ‚dS©Nz'Invalid state: reading should be pausedrq)rkÚdatarrrÚ data_receivedsz'_SendfileFallbackProtocol.data_receivedcCs tdƒ‚dSr{rqrwrrrÚ eof_receivedsz&_SendfileFallbackProtocol.eof_receivedcÃsF|j |j¡|jr|j ¡|jdur2|j ¡|jrB|j ¡dSrE) rbrgrcrdÚresume_readingrjÚcancelrerzrwrrrÚrestore s   z!_SendfileFallbackProtocol.restoreN) Ú__name__Ú __module__Ú __qualname__rmrprtrvrxrzr}r~r�rrrrraÒs rac@sxeZdZdd„Zdd„Zdd„Zdd„Zd d „Zd d „Zd d„Z dd„Z e dd„ƒZ dd„Z dd„Zdd„Zdd„ZdS)rcCs@||_||_d|_g|_||_||_||_||_d|_d|_ dS)NrF) rhÚ_socketsÚ _active_countÚ_waitersÚ_protocol_factoryÚ_backlogÚ _ssl_contextÚ_ssl_handshake_timeoutÚ_servingÚ_serving_forever_fut)rkÚloopÚsocketsÚprotocol_factoryZ ssl_contextÚbacklogÚssl_handshake_timeoutrrrrmszServer.__init__cCsd|jj›d|j›d�S)Nú)Ú __class__r‚r�rwrrrÚ__repr__%szServer.__repr__cCs|jd7_dSr])r†rwrrrÚ_attach(szServer._attachcCs.|jd8_|jdkr*|jdur*| ¡dS)Nrr)r†r…Ú_wakeuprwrrrÚ_detach,szServer._detachcCs,|j}d|_|D]}| ¡s| |¡qdSrE)r‡Údonery)rkÚwaitersÚwaiterrrrr˜2s zServer._wakeupc CsJ|jr dSd|_|jD].}| |j¡|j |j||j||j|j¡qdS©NT) rŒr…Úlistenr‰rhÚ_start_servingrˆrŠr‹)rkr,rrrrŸ9s    þzServer._start_servingcCs|jSrE)rhrwrrrÚget_loopCszServer.get_loopcCs|jSrE)rŒrwrrrÚ is_servingFszServer.is_servingcCs"|jdurdStdd„|jDƒƒS)Nrcss|]}t |¡VqdSrE)r ZTransportSocket)rFÚsrrrrHMr/z!Server.sockets..)r…Útuplerwrrrr�Is zServer.socketscCsn|j}|durdSd|_|D]}|j |¡qd|_|jdurX|j ¡sX|j ¡d|_|jdkrj| ¡dS)NFr) r…rhZ _stop_servingrŒr�ršr€r†r˜)rkr�r,rrrÚcloseOs ÿ  z Server.closecÃs| ¡t d¡IdHdS)Nr)rŸr ÚsleeprwrrrÚ start_servingbszServer.start_servingc Ãs¨|jdurtd|›d�ƒ‚|jdur4td|›d�ƒ‚| ¡|j ¡|_zRz|jIdHWn6tjy�z| ¡|  ¡IdHW‚n‚0Yn0Wd|_nd|_0dS)Nzserver z, is already being awaited on serve_forever()z is closed) r�rrr…rŸrhrirÚCancelledErrorr¤Ú wait_closedrwrrrÚ serve_foreverhs   ÿ  zServer.serve_forevercÃs<|jdus|jdurdS|j ¡}|j |¡|IdHdSrE)r…r‡rhrir<)rkrœrrrr¨}s   zServer.wait_closedN)r‚rƒr„rmr–r—r™r˜rŸr r¡Úpropertyr�r¤r¦r©r¨rrrrrs   rc @sheZdZdd„Zdd„Zdd„Zddœd d „Zd d „Zd d„Zd¦dddœdd„Z d§dddddddœdd„Z d¨dd„Z d©dd„Z dªdd„Z d«dd„Zdd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd)d*„Zd+d,„Zd-d.„Zd/d0„Zd1d2„Zd3d4„Zd5d6„Zd7d8„Zd9d:„Zd;d<„Zejfd=d>„Z d?d@„Z!dAdB„Z"ddCœdDdE„Z#ddCœdFdG„Z$ddCœdHdI„Z%dJdK„Z&dLdM„Z'dNdO„Z(ddCœdPdQ„Z)dRdS„Z*dTdU„Z+dVdW„Z,dXdXdXdXdYœdZd[„Z-d¬d\d]„Z.d­dd^œd_d`„Z/dadb„Z0dcdd„Z1dedf„Z2d®dgdh„Z3d¯ddXdXdXdddddddiœ djdk„Z4d°dldm„Z5d±dd^œdndo„Z6dpdq„Z7drds„Z8ddddtœdudv„Z9d²dXdXdXe:ddddwœdxdy„Z;dXed|d}„Z?d³e$r/z4BaseEventLoop.shutdown_asyncgens..)Zreturn_exceptionsrŽz;an error occurred during closing of asynchronous generator )ÚmessagerUZasyncgen) rÁÚlenrÀrKÚclearr Ú_gatherÚziprÚ ExceptionÚcall_exception_handler)rkZ closing_agensÚresultsÚresultrórrrÚshutdown_asyncgenss&    ý ÿüz BaseEventLoop.shutdown_asyncgenscÃs\d|_|jdurdS| ¡}tj|j|fd�}| ¡z|IdHW| ¡n | ¡0dS)NT)Útargetrã)rÂr²riÚ threadingÚThreadÚ _do_shutdownÚstartÚjoin)rkÚfutureÚthreadrrrÚshutdown_default_executor1s  z'BaseEventLoop.shutdown_default_executorc CsXz |jjdd�| |jd¡Wn2tyR}z| |j|¡WYd}~n d}~00dS)NT©Úwait)r²Úshutdownrðryrru)rkr Úexrrrr >s zBaseEventLoop._do_shutdowncCs(| ¡rtdƒ‚t ¡dur$tdƒ‚dS)Nz"This event loop is already runningz7Cannot run the event loop while another loop is running)rÃrrrZ_get_running_looprwrrrÚ_check_runningEs  ÿzBaseEventLoop._check_runningc Cs¼| ¡| ¡| |j¡t ¡|_t ¡}tj |j |j d�zJt   |¡| ¡|jrLq^qLWd|_d|_t   d¡| d¡tj |Žn,d|_d|_t   d¡| d¡tj |Ž0dS)N)Ú firstiterÚ finalizerF)rÊrÚ_set_coroutine_origin_trackingÚ_debugrÚ get_identr³ÚsysÚget_asyncgen_hooksÚset_asyncgen_hooksrûrôrZ_set_running_loopÚ _run_oncer®)rkZold_agen_hooksrrrÚ run_foreverLs.  ÿ    ü  zBaseEventLoop.run_foreverc Csª| ¡| ¡t |¡ }tj||d�}|r4d|_| t¡zFz |  ¡Wn*|rp|  ¡rp|  ¡sp|  ¡‚Yn0W|  t¡n |  t¡0|  ¡s¢tdƒ‚| ¡S)NrÆFz+Event loop stopped before Future completed.)rÊrrZisfuturer Z ensure_futureZ_log_destroy_pendingÚadd_done_callbackr[rršrTrUZremove_done_callbackrrr)rkr Znew_taskrrrÚrun_until_completecs"     z BaseEventLoop.run_until_completecCs d|_dSr�)r®rwrrrrX‰szBaseEventLoop.stopcCsp| ¡rtdƒ‚|jrdS|jr,t d|¡d|_|j ¡|j ¡d|_ |j }|durld|_ |j dd�dS)Nz!Cannot close a running event loopzClose %rTFr) rÃrrr­rrÚdebugr°rÿr±rÂr²r©rkÚexecutorrrrr¤‘s   zBaseEventLoop.closecCs|jSrE)r­rwrrrrĨszBaseEventLoop.is_closedcCs0| ¡s,|d|›�t|d�| ¡s,| ¡dS)Nzunclosed event loop rõ)rÄrùrÃr¤)rkÚ_warnrrrÚ__del__¬szBaseEventLoop.__del__cCs |jduSrE)r³rwrrrròszBaseEventLoop.is_runningcCst ¡SrE)r´r«rwrrrr´¶szBaseEventLoop.time)ÚcontextcGs4|j| ¡||g|¢Rd|iŽ}|jr0|jd=|S)Nr&rÉ)Úcall_atr´rË)rkÚdelayÚcallbackr&rãÚtimerrrrÚ call_later¿s ÿzBaseEventLoop.call_latercGsZ| ¡|jr"| ¡| |d¡t |||||¡}|jrB|jd=t |j |¡d|_ |S)Nr'rÉT) rÊrÚ _check_threadÚ_check_callbackrZ TimerHandlerËÚheapqÚheappushr±)rkÚwhenr)r&rãr*rrrr'Õs zBaseEventLoop.call_atcGsB| ¡|jr"| ¡| |d¡| |||¡}|jr>|jd=|S)NÚ call_soonrÉ)rÊrr,r-Ú _call_soonrË©rkr)r&rãrrrrr1ås  zBaseEventLoop.call_sooncCsDt |¡st |¡r$td|›d�ƒ‚t|ƒs@td|›d|›�ƒ‚dS)Nzcoroutines cannot be used with z()z"a callable object was expected by z(), got )rZ iscoroutineZiscoroutinefunctionr8rÎ)rkr)Úmethodrrrr-øs ÿ ÿÿÿzBaseEventLoop._check_callbackcCs.t ||||¡}|jr|jd=|j |¡|S)NrÉ)rÚHandlerËr°r<)rkr)rãr&rrrrr2s  zBaseEventLoop._call_sooncCs,|jdurdSt ¡}||jkr(tdƒ‚dS)NzMNon-thread-safe operation invoked on an event loop other than the current one)r³rrrr)rkZ thread_idrrrr, s  ÿzBaseEventLoop._check_threadcGsB| ¡|jr| |d¡| |||¡}|jr6|jd=| ¡|S)NrðrÉ)rÊrr-r2rËrër3rrrrðs z"BaseEventLoop.call_soon_threadsafecGsh| ¡|jr| |d¡|durL|j}| ¡|durLtjjdd�}||_tj|j |g|¢RŽ|d�S)NÚrun_in_executorZasyncio)Zthread_name_prefixrÆ) rÊrr-r²rîÚ concurrentrÚThreadPoolExecutorZ wrap_futureÚsubmit)rkr#Úfuncrãrrrr6%s ÿÿzBaseEventLoop.run_in_executorcCs&t|tjjƒst dtd¡||_dS)Nz{Using the default executor that is not an instance of ThreadPoolExecutor is deprecated and will be prohibited in Python 3.9é)rr7rr8r÷røÚDeprecationWarningr²r"rrrÚset_default_executor5s üz"BaseEventLoop.set_default_executorc CsÞ|›d|›�g}|r$| d|›�¡|r8| d|›�¡|rL| d|›�¡|r`| d|›�¡d |¡}t d|¡| ¡}t ||||||¡} | ¡|} d|›d | d d ›d | ›�}| |jkrÐt |¡n t |¡| S) Nú:zfamily=ztype=zproto=zflags=ú, zGet address info %szGetting address info z took g@�@z.3fzms: ) r<r rr!r´r&Ú getaddrinfor¹Úinfo) rkr>r?r@rArBÚflagsÚmsgÚt0ÚaddrinfoÚdtrrrÚ_getaddrinfo_debug>s&      z BaseEventLoop._getaddrinfo_debugr©r@rArBrBc Ãs2|jr|j}ntj}| d|||||||¡IdHSrE)rrGr&r@r6)rkr>r?r@rArBrBZ getaddr_funcrrrr@Vs ÿzBaseEventLoop.getaddrinfocÃs| dtj||¡IdHSrE)r6r&Ú getnameinfo)rkZsockaddrrBrrrrI`s ÿzBaseEventLoop.getnameinfo)Úfallbackc ÃsŽ|jr| ¡dkrtdƒ‚t|ƒ| ||||¡z| ||||¡IdHWStjyv}z|sb‚WYd}~n d}~00| ||||¡IdHS)Nrzthe socket must be non-blocking) rÚ gettimeoutr'r`Ú_check_sendfile_paramsÚ_sock_sendfile_nativerÚSendfileNotAvailableErrorÚ_sock_sendfile_fallback)rkr,ÚfileÚoffsetÚcountrJrZrrrÚ sock_sendfiledsÿ ÿzBaseEventLoop.sock_sendfilecÃst d|›d|›d�¡‚dS)Nz-syscall sendfile is not available for socket z and file z combination©rrN©rkr,rPrQrRrrrrMss ÿÿz#BaseEventLoop._sock_sendfile_nativec Ãsð|r| |¡|rt|tjƒntj}t|ƒ}d}z”|rNt|||ƒ}|dkrNqžt|ƒd|…}| d|j|¡IdH} | szqž| ||d| …¡IdH|| 7}q2|W|dkrÂt |dƒrÂ| ||¡Sn&|dk�rêt |dƒ�rê| ||¡0dS)NrÚseek) rVÚminrZ!SENDFILE_FALLBACK_READBUFFER_SIZEÚ bytearrayÚ memoryviewr6ÚreadintoZ sock_sendallr%) rkr,rPrQrRÚ blocksizeÚbufÚ total_sentÚviewÚreadrrrrOzs6 ÿþ ýÿz%BaseEventLoop._sock_sendfile_fallbackcCs”dt|ddƒvrtdƒ‚|jtjks,tdƒ‚|durbt|tƒsLtd |¡ƒ‚|dkrbtd |¡ƒ‚t|tƒsztd |¡ƒ‚|dkr�td |¡ƒ‚dS)NÚbÚmodez$file should be opened in binary modez+only SOCK_STREAM type sockets are supportedz+count must be a positive integer (got {!r})rz0offset must be a non-negative integer (got {!r})) rr'rAr&r4rr7r8ÚformatrUrrrrL”s2  ÿÿ ÿÿÿÿz$BaseEventLoop._check_sendfile_paramsc ÃsDg}| |¡|\}}}}} d} z¼tj|||d�} |  d¡|durÆ|D]t\}}}}} z|  | ¡WqÆWqHtyº} z8d| ›d| j ¡›�} t| j| ƒ} | | ¡WYd} ~ qHd} ~ 00qH| ¡‚|  | | ¡IdH| WSt�y } z*| | ¡| du�r |   ¡‚WYd} ~ n(d} ~ 0| du�r8|   ¡‚Yn0dS)N©r@rArBFz*error while attempting to bind on address ú: ) r<r&Ú setblockingÚbindr*ÚstrerrorÚlowerÚerrnoÚpopÚ sock_connectr¤)rkrZ addr_infoZlocal_addr_infosZ my_exceptionsr@Útype_rBÚ_rÝr,ÚladdrrZrCrrrÚ _connect_sock©sB    ÿþÿ "   zBaseEventLoop._connect_sock) r_r@rBrBr,Ú local_addrrÙr’Úhappy_eyeballs_delayÚ interleavec  ƒsz| dur|stdƒ‚| dur0|r0|s,tdƒ‚|} | durD|sDtdƒ‚|durTt|ƒ| durh| durhd} |dusz|du�r|durŠtdƒ‚ˆj||f|tj||ˆd�IdH}|s¸tdƒ‚| durìˆj| |tj||ˆd�IdH‰ˆsðtdƒ‚nd‰| rþt|| ƒ}g‰| du�rV|D]B}z ˆ ˆ|ˆ¡IdH}W�q„Wnt�yNY�qYn0�qn.tj ‡‡‡fdd „|Dƒ| ˆd �IdH\}}}|du�r.d d „ˆDƒ‰t ˆƒdk�r´ˆd ‚nJt ˆd ƒ‰t ‡fdd „ˆDƒƒ�ràˆd ‚td  d dd „ˆDƒ¡¡ƒ‚n.|du�rtdƒ‚|jtjk�r.td|›�ƒ‚ˆj|||| | d�IdH\}}ˆj�rr| d¡}t d|||||¡||fS)Nz+server_hostname is only meaningful with sslz:You must set server_hostname when using ssl without a hostú1ssl_handshake_timeout is only meaningful with sslrú8host/port and sock can not be specified at the same time©r@rArBrBrŽú!getaddrinfo() returned empty listc3s |]}t ˆjˆ|ˆ¡VqdSrE)Ú functoolsÚpartialro)rFrE)rÚ laddr_infosrkrrrH!sþÿz2BaseEventLoop.create_connection..rÆcSsg|]}|D]}|‘q qSrr)rFÚsubrZrrrrü'r/z3BaseEventLoop.create_connection..rc3s|]}t|ƒˆkVqdSrE©r©rFrZ)ÚmodelrrrH-r/zMultiple exceptions: {}r?css|]}t|ƒVqdSrEr{r|rrrrH2r/z5host and port was not specified and no sock specifiedú"A Stream Socket was expected, got )r’r&z%r connected to %s:%r: (%r, %r))r'r`Ú_ensure_resolvedr&r4r*rSror Zstaggered_racerþrÚallrbr rAÚ_create_connection_transportrÚget_extra_inforr!)rkr�r>r?r_r@rBrBr,rprÙr’rqrrÚinfosrErmrsrÖr)rryr}rkrÚcreate_connectionÍs    ÿÿ þ ý    ÿ  þü   ÿ ÿÿþ  ÿzBaseEventLoop.create_connectionc Ãs„| d¡|ƒ}| ¡}|rHt|tƒr*dn|} |j||| ||||d�} n| |||¡} z|IdHWn|  ¡‚Yn0| |fS)NF©rØrÙr’)rerirÚboolrÜr×r¤) rkr,r�r_rÙrØr’rÖrœrÛrsrrrr�Ms" ýz*BaseEventLoop._create_connection_transportc Ãs´| ¡rtdƒ‚t|dtjjƒ}|tjjur:td|›�ƒ‚|tjjurŒz| ||||¡IdHWStj yŠ}z|sv‚WYd}~n d}~00|sžtd|›�ƒ‚|  ||||¡IdHS)NzTransport is closingZ_sendfile_compatiblez(sendfile is not supported for transport zHfallback is disabled and native sendfile is not supported for transport ) rnrrrrZ _SendfileModeZ UNSUPPORTEDZ TRY_NATIVEÚ_sendfile_nativerrNÚ_sendfile_fallback)rkrsrPrQrRrJrarZrrrÚsendfilegs4ÿ ÿ ÿ ÿÿÿzBaseEventLoop.sendfilecÃst d¡‚dS)Nz!sendfile syscall is not supportedrT)rkrlrPrQrRrrrr‡–sÿzBaseEventLoop._sendfile_nativec Ãs||r| |¡|rt|dƒnd}t|ƒ}d}t|ƒ}�z |r†t|||ƒ}|dkr†|W|dkrvt|dƒrv| ||¡| ¡IdHSt|ƒd|…} | d|j| ¡IdH} | sä|W|dkrÔt|dƒrÔ| ||¡| ¡IdHS|  ¡IdH|  | d| …¡|| 7}q8W|dk�r4t|dƒ�r4| ||¡| ¡IdHn4|dk�rht|dƒ�rh| ||¡| ¡IdH0dS)Ni@rrV) rVrWrXrar%r�rYr6rZrpÚwrite) rkrlrPrQrRr[r\r]rBr^r_rrrrˆšs@  õù þz BaseEventLoop._sendfile_fallbackr…c ÃsÖtdurtdƒ‚t|tjƒs*td|›�ƒ‚t|ddƒsFtd|›d�ƒ‚| ¡}tj|||||||dd�}|  ¡|  |¡|  |j |¡} |  |j ¡} z|IdHWn,tyÎ| ¡|  ¡|  ¡‚Yn0|jS)Nz"Python ssl module is not availablez@sslcontext is expected to be an instance of ssl.SSLContext, got Z_start_tls_compatibleFz transport z is not supported by start_tls())r’rÚ)r_rrrZ SSLContextr8rrir Z SSLProtocolrfrgr1rtrÚ BaseExceptionr¤r€Z_app_transport) rkrsrÖrÛrØrÙr’rœZ ssl_protocolZ conmade_cbZ resume_cbrrrÚ start_tls³s>  ÿÿ  ÿü   zBaseEventLoop.start_tls)r@rBrBÚ reuse_addressÚ reuse_portÚallow_broadcastr,c ƒs| dur�| jtjkr"td| ›�ƒ‚ˆs>ˆs>|s>|s>|s>|s>| r~tˆˆ|||||| d�} d dd„|  ¡Dƒ¡} td| ›d�ƒ‚|  d¡d} �nˆsºˆsº|d kr¨td ƒ‚||fd ff}�n°ttd ƒ�rŒ|tj k�rŒˆˆfD]}|durÚt |t ƒsÚt d ƒ‚qÚˆ�rxˆd dv�rxz"t  t  ˆ¡j¡�r.t ˆ¡WnFt�yDYn4t�yv}zt dˆ|¡WYd}~n d}~00||fˆˆfff}nÞi}d ˆfdˆffD]¢\}}|du�r t |tƒ�rÌt|ƒdk�sÔt dƒ‚|j||tj|||d�IdH}|�stdƒ‚|D]:\}}}}}||f}||v�r0ddg||<||||<�q�q ‡‡fdd„| ¡Dƒ}|�sjtdƒ‚g}|tu�r˜|�rˆtdƒ‚ntjdtdd�|D]ú\\}}\}}d} d} zxtj|tj|d�} |�rÖt| ƒ| �rî|  tjtj d¡|  d¡ˆ�r|  !|¡ˆ�r*| �s&| "| |¡IdH|} Wn`t�yn}z(| du�rP|  #¡| $|¡WYd}~n.d}~0| du�r†|  #¡‚Yn0�q �qœ|d ‚|ƒ}| %¡}| &| || |¡}|j'�rðˆ�ràt (dˆˆ||¡nt )dˆ||¡z|IdHWn| #¡‚Yn0||fS)NzA UDP Socket was expected, got )rpÚ remote_addrr@rBrBr�rŽr�r?css$|]\}}|r|›d|›�VqdS)ú=Nr)rFÚkÚvrrrrHór/z9BaseEventLoop.create_datagram_endpoint..zKsocket modifier keyword arguments can not be used when sock is specified. (ú)Frzunexpected address family)NNÚAF_UNIXzstring is expected)rúz2Unable to check or remove stale UNIX socket %r: %rrr;z2-tuple is expectedrurvcs8g|]0\}}ˆr|ddusˆr,|ddus||f‘qS)rNrr)rFÚkeyZ addr_pair©rpr�rrrü&sþz:BaseEventLoop.create_datagram_endpoint..zcan not get address informationz~Passing `reuse_address=True` is no longer supported, as the usage of SO_REUSEPORT in UDP poses a significant security concern.zdThe *reuse_address* parameter has been deprecated as of 3.5.10 and is scheduled for removal in 3.11.)Ú stacklevelrcz@Datagram endpoint local_addr=%r remote_addr=%r created: (%r, %r)z2Datagram endpoint remote_addr=%r created: (%r, %r))*rAr&r5r'Údictr Úitemsrer%r•rrr8ÚstatÚS_ISSOCKÚosÚst_modeÚremoveÚFileNotFoundErrorr*rÚerrorr£rþrÚ_unsetr÷rør<r-r(r)Ú SO_BROADCASTrfrkr¤r<rirÞrrAr!) rkr�rpr�r@rBrBr�rŽr�r,ZoptsZproblemsZr_addrZaddr_pairs_inforRÚerrZ addr_infosÚidxrƒZfamrmZprorÝr—rZ local_addressZremote_addressrZrÖrœrsrr˜rÚcreate_datagram_endpointás ÿÿÿÿþþýÿÿ   þÿ þ    ÿ  ýÿ ÿ ÿ     ÿþþz&BaseEventLoop.create_datagram_endpointc Ãs^|dd…\}}t|||||g|dd…¢RŽ} | dur>| gS|j||||||d�IdHSdS)Nr;rH)rDr@) rkrÝr@rArBrBrŽr>r?rArrrrts  ÿzBaseEventLoop._ensure_resolvedcÃs8|j||f|tj||d�IdH}|s4td|›d�ƒ‚|S)N)r@rArBrŽz getaddrinfo(z) returned empty list)rr&r4r*)rkr>r?r@rBrƒrrrÚ_create_server_getaddrinfo€s þ z(BaseEventLoop._create_server_getaddrinfor) r@rBr,r‘r_r�rŽr’r¦c  ƒsÞt|tƒrtdƒ‚| dur*|dur*tdƒ‚|dur:t|ƒ|dusLˆdu�rL|dur\tdƒ‚| durxtjdkovtjdk} g} |dkrŒdg}n$t|t ƒs¤t|t j j ƒs¬|g}n|}‡‡‡‡fdd„|Dƒ}t j|d ˆiŽIdH}ttj |¡ƒ}d }�z8|D�]}|\}}}}}zt |||¡}Wn6tj�yVˆj�rNtjd |||d d �YqúYn0|  |¡| �rz| tjtjd ¡| �rˆt|ƒt�r¸|tjk�r¸ttdƒ�r¸| tj tj!d ¡z| "|¡Wqút#�y}z(t#|j$d||j% &¡fƒd‚WYd}~qúd}~00qúd }W|�sJ| D]}| '¡�qn|�sH| D]}| '¡�q80n4|du�r^tdƒ‚|j(tj)k�rztd|›�ƒ‚|g} | D]}| *d ¡�q„t+ˆ| |||| ƒ}| �rÆ| ,¡t  -d¡IdHˆj�rÚt .d|¡|S)Nz*ssl argument must be an SSLContext or NonersrtÚposixÚcygwinr0csg|]}ˆj|ˆˆˆd�‘qS))r@rB)r¨)rFr>©r@rBr?rkrrrü½sþ ÿz/BaseEventLoop.create_server..rŽFz:create_server() failed to create socket.socket(%r, %r, %r)T©Úexc_infoÚ IPPROTO_IPV6z0error while attempting to bind on address %r: %sz)Neither host/port nor sock were specifiedr~rz %r is serving)/rr†r8r'r`ržrÈrÚplatformrrIÚabcÚIterabler rÚsetrNrOrPr&r¢rrÚwarningr<r(r)Ú SO_REUSEADDRr-r;rr%r®Ú IPV6_V6ONLYrfr*rirgrhr¤rAr4rerrŸr¥rA)rkr�r>r?r@rBr,r‘r_r�rŽr’r¦r�ÚhostsÚfsrƒZ completedÚresrCÚsocktyperBÚ canonnameÚsar¥rÓrr«rÚ create_serverˆs® ÿÿ  ÿþ þ   ÿÿþþ þþþ ÿ zBaseEventLoop.create_server)r_r’cÃs†|jtjkrtd|›�ƒ‚|dur.|s.tdƒ‚|dur>t|ƒ|j|||dd|d�IdH\}}|jr~| d¡}t  d|||¡||fS)Nr~rsr0T)rØr’r&z%r handled: (%r, %r)) rAr&r4r'r`r�rr‚rr!)rkr�r,r_r’rsrÖrrrÚconnect_accepted_sockets  ÿ þ z%BaseEventLoop.connect_accepted_socketcÃsd|ƒ}| ¡}| |||¡}z|IdHWn| ¡‚Yn0|jr\t d| ¡||¡||fS)Nz Read pipe %r connected: (%r, %r))rirár¤rrr!Úfileno©rkr�ràrÖrœrsrrrÚconnect_read_pipe s ÿzBaseEventLoop.connect_read_pipecÃsd|ƒ}| ¡}| |||¡}z|IdHWn| ¡‚Yn0|jr\t d| ¡||¡||fS)Nz!Write pipe %r connected: (%r, %r))rirâr¤rrr!r¾r¿rrrÚconnect_write_pipe0s ÿz BaseEventLoop.connect_write_pipecCs–|g}|dur"| dt|ƒ›�¡|durJ|tjkrJ| dt|ƒ›�¡n8|durf| dt|ƒ›�¡|dur‚| dt|ƒ›�¡t d |¡¡dS)Nzstdin=zstdout=stderr=zstdout=zstderr=ú )r<r#rr!rr!r )rkrCrårærçrArrrÚ_log_subprocess@szBaseEventLoop._log_subprocess) rårærçÚuniversal_newlinesrärèÚencodingÚerrorsÚtextc ËsÚt|ttfƒstdƒ‚|r"tdƒ‚|s.tdƒ‚|dkr>tdƒ‚| rJtdƒ‚| durZtdƒ‚| durjtdƒ‚|ƒ} d}|jr’d |}| ||||¡|j| |d ||||fi| ¤ŽIdH}|jrÒ|durÒt d ||¡|| fS) Nzcmd must be a stringú universal_newlines must be Falsezshell must be Truerúbufsize must be 0útext must be Falseúencoding must be Noneúerrors must be Nonezrun shell command %rTú%s: %r) rr6rr'rrÃrêrrA)rkr�ÚcmdrårærçrÄrärèrÅrÆrÇrérÖÚ debug_logrsrrrÚsubprocess_shellMs6ÿÿ zBaseEventLoop.subprocess_shellc ÏsÐ|r tdƒ‚|rtdƒ‚|dkr(tdƒ‚| r4tdƒ‚| durDtdƒ‚| durTtdƒ‚|f| }|ƒ}d}|jrˆd|›�}| ||||¡|j||d ||||fi| ¤ŽIdH}|jrÈ|durÈt d ||¡||fS) NrÈzshell must be FalserrÉrÊrËrÌzexecute program FrÍ)r'rrÃrêrrA)rkr�ZprogramrårærçrÄrärèrÅrÆrÇrãréZ popen_argsrÖrÏrsrrrÚsubprocess_execqs6   þþ zBaseEventLoop.subprocess_execcCs|jSrE)r·rwrrrÚget_exception_handler“sz#BaseEventLoop.get_exception_handlercCs(|durt|ƒstd|›�ƒ‚||_dS)Nz+A callable object or None is expected, got )rÎr8r·)rkÚhandlerrrrÚset_exception_handler˜s ÿz#BaseEventLoop.set_exception_handlerc Cs| d¡}|sd}| d¡}|dur6t|ƒ||jf}nd}d|vr`|jdur`|jjr`|jj|d<|g}t|ƒD]†}|dvr|qn||}|dkr®d t |¡¡}d }||  ¡7}n2|dkrØd t |¡¡}d }||  ¡7}nt |ƒ}|  |›d |›�¡qnt j d  |¡|d �dS)Nrýz!Unhandled exception in event looprUFZsource_tracebackZhandle_traceback>rýrUr0z+Object created at (most recent call last): z+Handle created at (most recent call last): rdÚ r¬)ÚgetrAÚ __traceback__rºrËÚsortedr Ú tracebackÚ format_listÚrstriprr<rr¢) rkr&rýrUr­Z log_linesr—ÚvalueÚtbrrrÚdefault_exception_handler©s<  ÿþÿ z'BaseEventLoop.default_exception_handlerc Csð|jdurRz| |¡Wqìttfy0‚YqìtyNtjddd�Yqì0nšz| ||¡Wnˆttfyz‚Ynrtyê}zZz| d||dœ¡Wn6ttfy¶‚Yn tyÔtjddd�Yn0WYd}~n d}~00dS)Nz&Exception in default exception handlerTr¬z$Unhandled error in exception handler)rýrUr&zeException in default exception handler while handling an unexpected error in custom exception handler)r·rÞrVrWr‹rr¢)rkr&rZrrrrÛs4  ÿý  ýz$BaseEventLoop.call_exception_handlercCs|jr dS|j |¡dSrE)Ú _cancelledr°r<©rkrrrrÚ _add_callbackszBaseEventLoop._add_callbackcCs| |¡| ¡dSrE)rárëràrrrÚ_add_callback_signalsafes z&BaseEventLoop._add_callback_signalsafecCs|jr|jd7_dSr])r±r¬ràrrrÚ_timer_handle_cancelled!sz%BaseEventLoop._timer_handle_cancelledc CsØt|jƒ}|tkr`|j|tkr`g}|jD]}|jrsd                   ;   Do