config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/test/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/test/test_socketserver.pyo

³ò
h”Rc@sddklZddklZlZlZlZlZeidƒddk	Tddk
Z
ddkZddkZddk
Z
ddkZddkZdZdZdd*d	„ƒYZd
eefd„ƒYZdeefd
„ƒYZdd+d„ƒYZdZdd„Zd„Zd„Zdeifd„ƒYZdad„ZdZ gZ!d„Z"d„Z#d„Z$de%fd„ƒYZ&e&e'gZ(e)edƒo!ei*d,joe(i+e,ƒne-e.gZ/e)edƒo!ei*d-joe/i+e0ƒne)e
d!ƒpgZ1gZ2n­d"e3e4fd#„ƒYZ5e4e6gZ1e)edƒo!ei*d.joe1i+e5ƒnd$e3e7fd%„ƒYZ8e7e9gZ2e)edƒo!ei*d/joe2i+e8ƒnd&„Z:d'„Z;d(„Z<e=d)joe<ƒndS(0iÿÿÿÿ(ttest_support(tverbosetverifytTESTFNtTestSkippedt
reap_childrentnetwork(t*Nigà?tMyMixinHandlercBseZd„ZRS(cCs=titƒ|iiƒ}titƒ|ii|ƒdS(N(ttimetsleeptDELAYtrfiletreadlinetwfiletwrite(tselftline((s2/usr/local/lib/python2.5/test/test_socketserver.pythandles

(t__name__t
__module__R(((s2/usr/local/lib/python2.5/test/test_socketserver.pyRstMyStreamHandlercBseZRS((RR(((s2/usr/local/lib/python2.5/test/test_socketserver.pyRstMyDatagramHandlercBseZRS((RR(((s2/usr/local/lib/python2.5/test/test_socketserver.pyRst
MyMixinServercBseZd„Zd„ZRS(cCs%xttƒD]}|iƒq
WdS(N(trangetNREQthandle_request(Rti((s2/usr/local/lib/python2.5/test/test_socketserver.pytserve_a_few!s
cCs|i|ƒ|iƒ‚dS(N(t
close_requesttserver_close(Rtrequesttclient_address((s2/usr/local/lib/python2.5/test/test_socketserver.pythandle_error$s

(RRRR!(((s2/usr/local/lib/python2.5/test/test_socketserver.pyR s	shello world
icCsVti|ggg|ƒ\}}}||jo|i|ƒSntd|f‚dS(Nstimed out on %r(tselecttrecvtRuntimeError(tsocktnttimeouttrtwtx((s2/usr/local/lib/python2.5/test/test_socketserver.pytreceive+s$
cCs‹ti|tiƒ}|it|ƒt|dƒ}}x2|o*d|jot|dƒ}||7}q;Wt|tjƒ|iƒdS(Nids
(tsockett
SOCK_DGRAMtsendtot
teststringR+Rtclose(tprototaddrtstbuftdata((s2/usr/local/lib/python2.5/test/test_socketserver.pyt	testdgram2scCs•ti|tiƒ}|i|ƒ|itƒt|dƒ}}x2|o*d|jot|dƒ}||7}qEWt|tjƒ|iƒdS(Nids
(R,tSOCK_STREAMtconnecttsendallR/R+RR0(R1R2R3R4R5((s2/usr/local/lib/python2.5/test/test_socketserver.pyt
teststream<s

tServerThreadcBseZd„Zd„ZRS(cCs/tii|ƒ||_||_||_dS(N(t	threadingtThreadt__init__t_ServerThread__addrt_ServerThread__svrclst_ServerThread__hdlrcls(RR2tsvrclsthdlrcls((s2/usr/local/lib/python2.5/test/test_socketserver.pyR>Hs		cCsËdt|ifd„ƒY}to	dGHn||i|iƒ}|i}|oL||_|i|iiƒjo&td|i|iiƒfƒ‚qnto	dGHn|i	ƒto	dGHndS(NRBcBseZRS((RR(((s2/usr/local/lib/python2.5/test/test_socketserver.pyRBNssthread: creating servers"server_address was %s, expected %ssthread: serving three timessthread: done(
RR@RR?RAtserver_addressR,tgetsocknameR$R(RRBtsvrR2((s2/usr/local/lib/python2.5/test/test_socketserver.pytrunMs			$	
(RRR>RG(((s2/usr/local/lib/python2.5/test/test_socketserver.pyR;Gs	icCs$td7adtiƒddtS(Nii'ièi
(tseedtostgetpid(((s2/usr/local/lib/python2.5/test/test_socketserver.pytpickport_s
t	localhostcCs|tijottƒfSnÜtttƒƒ}tidjo§|ddjo|d}n|dtiti	fjo|d}nti
id|ƒ}tidjo|ititi	ƒ}që|iti	tiƒ}nt
i|ƒ|SdS(Ntos2it:iis\sockett/(R,tAF_INETthostRKRtstrRItnametseptaltseptpathtjointreplacet	testfilestappend(R1tfn((s2/usr/local/lib/python2.5/test/test_socketserver.pytpickaddrfs
cCsFx8tD]0}yti|ƒWqtij
oqXqWgt(dS(N(RYRItremoveterror(R[((s2/usr/local/lib/python2.5/test/test_socketserver.pytcleanup{s	cCséxâ|D]Ú}t|ƒ}todG|GHdG|GHnt|||ƒ}to	dGHn|iƒto	dGHnxBttƒD]4}titƒto
dG|GHn|||ƒqWto	dGHn|i	ƒto	dGHqqWdS(NsADDR =sCLASS =sserver createdsserver runningstest clientswaiting for servertdone(
R\RR;tstartRRR	R
RRW(R1tserversRCttestfuncRBR2ttR((s2/usr/local/lib/python2.5/test/test_socketserver.pyttestloopƒs.	
	
	


	
tForgivingTCPServercBseZd„ZRS(cCs¦|i\}}ddk}x„|dddgD]p}y!||f|_ti|ƒPWq.tij
o7\}}|tijo‚n|id|IJq.Xq.WdS(Niÿÿÿÿij
i^"i]s6  WARNING: failed to listen on port %d, trying another(	RDtsyst	TCPServertserver_bindR,R^terrnot
EADDRINUSEt
__stderr__(RRQtdefault_portRgtportterrtmsg((s2/usr/local/lib/python2.5/test/test_socketserver.pyRi—s
(RRRi(((s2/usr/local/lib/python2.5/test/test_socketserver.pyRf•stforkRMtAF_UNIXtForkingUnixStreamServercBseZRS((RR(((s2/usr/local/lib/python2.5/test/test_socketserver.pyRs²stForkingUnixDatagramServercBseZRS((RR(((s2/usr/local/lib/python2.5/test/test_socketserver.pyRt¶scCstitƒtƒdS(N(R	R
RR(((s2/usr/local/lib/python2.5/test/test_socketserver.pytsloppy_cleanup»s
cCshttitttƒtƒttittt	ƒt
tdƒo!tƒttitttƒndS(NRr(
ReR,RPt
tcpserversRR:Rut
udpserversRR6thasattrRrt
streamservers(((s2/usr/local/lib/python2.5/test/test_socketserver.pyttestallÂscCsJddk}|iƒotdƒ‚nztƒWdtƒXtƒdS(Niÿÿÿÿs"can't run when import lock is held(timpt	lock_heldRRzR_R(R{((s2/usr/local/lib/python2.5/test/test_socketserver.pyt	test_mainÍs
t__main__(((sos2(sos2(sos2(sos2(>ttestRttest.test_supportRRRRRtrequirestSocketServerR,RjR"R	R<RIRRRtStreamRequestHandlerRtDatagramRequestHandlerRRR/R+R6R:R=R;RHRKRQRYR\R_ReRhRftThreadingTCPServerRvRxRSRZtForkingTCPServert	UDPServertThreadingUDPServerRwtForkingUDPServerRytdgramserverstForkingMixIntUnixStreamServerRstThreadingUnixStreamServertUnixDatagramServerRttThreadingUnixDatagramServerRuRzR}R(((s2/usr/local/lib/python2.5/test/test_socketserver.pys<module>sd(

		
					  
  			


Man Man