+
    j                         ^ RI H t  ^ RIt^ RIt^ RIt^ RIt^ RIt^ RIHt ^ RIH	t	 ^ RIH
t
 ^ RIHt ^ RIHt  ! R R	]4      t ! R
 R]P                   4      tR# )    )datetimeN)http)wsgi)sock)util)basec                       ] tR t^tRtRtR# )StopWaitingz2exception raised to stop waiting for a connection  N)__name__
__module____qualname____firstlineno____doc____static_attributes__r       J/var/www/idalgo/venv/lib/python3.14/site-packages/gunicorn/workers/sync.pyr
   r
      s    =r   r
   c                   P   a  ] tR t^t o R tR tR tR tR tR t	R t
R tR	tV tR
# )
SyncWorkerc                    VP                  4       w  r#VP                  ^4       \        P                  ! V4       V P	                  WV4       R# )   N)acceptsetblockingr   close_on_exechandle)selflistenerclientaddrs   &&  r   r   SyncWorker.accept   s:    (16"Hd+r   c                ^    V P                  4        \        P                  ! V P                  . . V4      pV^ ,          '       dQ   V P                  ^ ,          V^ ,          9   d)   \        P
                  ! V P                  ^ ,          ^4       V^ ,          # R#   \         d   pTP                  ^ ,          \        P                  8X  d   T P                  u Rp?# TP                  ^ ,          \        P                  8X  d)   T P                  ^ 8  d   T P                  u Rp?# \        hh Rp?ii ; ir   N)notifyselectwait_fdsPIPEosreadOSErrorargserrnoEINTRsocketsEBADFnrr
   )r   timeoutretes   &&  r   waitSyncWorker.wait    s    	KKM--r2w?C1vv99Q<3q6)GGDIIaL!,1v 
  	vvayEKK'||#vvayEKK'77Q;<<'%%	s8   AB AB D,!1D'D,AD'D, D''D,c                    V P                   \        P                  ! 4       8w  d   V P                  P	                  R V 4       R# R# )z!Parent changed, shutting down: %sFT)ppidr'   getppidloginfo)r   s   &r   is_parent_aliveSyncWorker.is_parent_alive3   s-    99

$HHMM=tDr   c                   V P                   ^ ,          pV P                  '       d%   V P                  4         V P                  V4       K6  R#   \         dJ   pTP
                  \
        P                  \
        P                  \
        P                  39  d   h  Rp?MRp?ii ; iT P                  4       '       g   R#  T P                  T4       K    \         d     R# i ; ir"   )r-   aliver#   r   r)   r+   EAGAINECONNABORTEDEWOULDBLOCKr:   r3   r
   )r   r0   r   r2   s   &&  r   run_for_oneSyncWorker.run_for_one:   s    <<?jjjKKM
H%    775<<1C1C#(#4#4#6 66
 ''))		'" s)   A B ?BB <C CCc                   V P                   '       du   V P                  4         V P                  V4      pTe5   T F.  pY0P                  ^ ,          8X  d   K   T P                  T4       K0  	  T P                  4       '       d   K  R # R #   \         d     R # i ; i  \         dK   pTP                  \        P                  \        P                  \        P                  39  d   h  R p?K  R p?ii ; i)N)r=   r#   r3   r
   r&   r   r)   r+   r>   r?   r@   r:   )r   r0   readyr   r2   s   &&   r   run_for_multipleSyncWorker.run_for_multipleW   s    jjjKKM		'*   %H99Q</ "H- !& ''))+ 
   # "775<<9K9K+0+<+<+> >!>"s)   B	 B	BBC0&?C++C0c                b   V P                   ;'       g    R pRV P                  P                  9   d   V P                  P	                  R4       V P
                   F  pVP                  ^ 4       K  	  \        V P
                  4      ^8  d   V P                  V4       R# V P                  V4       R# )g      ?h2zHTTP/2 is not supported by the sync worker. Use gthread, gevent, or asgi workers for HTTP/2 support. Falling back to HTTP/1.1 only.N)
r0   cfghttp_protocolsr8   warningr-   r   lenrE   rA   )r   r0   ss   &  r   runSyncWorker.runo   s     ,,%%# 488***HH1 AMM!  t||q !!'*W%r   c                   R p V P                   P                  '       d!   \        P                  ! W P                   4      p\        P
                  ! V P                   W#4      p\        V4      pV P                  WW#4       \4        P6                  ! V4       R #   \        P                  P                   d'   pT P                  P                  RT4        R p?LXR p?i\         d'   pT P                  P                  RT4        R p?LR p?i\        P                   d   pTP                  ^ ,          \        P                   8X  d1   T P                  P                  R4       TP#                  4         R p?LT P                  P                  R4       T P%                  YBY64        R p?EL(R p?i\&         Ed   pTP(                  \(        P*                  \(        P,                  \(        P.                  39  d"   T P                  P1                  R4        R p?ELTP(                  \(        P,                  8X  d"   T P                  P                  R4        R p?ELTP(                  \(        P.                  8X  d"   T P                  P                  R4        R p?ELT P                  P                  R4        R p?EL7R p?i\2         d   pT P%                  YBY64        R p?EL]R p?ii ; i  \4        P6                  ! T4       i ; i)	Nz*Ignored premature client disconnection. %szClosing connection. %szssl connection closedzError processing SSL request.z Socket error processing request.zIgnoring connection resetzIgnoring socket not connectedzIgnoring EPIPE)rI   is_sslr   ssl_wrap_socketr   
get_parsernexthandle_requesterrors
NoMoreDatar8   debugStopIterationsslSSLErrorr*   SSL_ERROR_EOFclosehandle_errorr)   r+   EPIPE
ECONNRESETENOTCONN	exceptionBaseExceptionr   close_graceful)r   r   r   r   reqparserr2   s   &&&&   r   r   SyncWorker.handle   s   	(xx--fhh?__TXXv<Fv,Cv<2 '1 {{%% 	LHHNNGKK 	8HHNN3Q77|| 	8vvayC---67>?!!#t77 		5wwu{{E,<,<ennMM""#EFF77e...HHNN#>??WW.HHNN#BCCHHNN#344 	4c433	4 's   A:B K 5CK# K #K $D K# K K AF&.K# 3-F& K# &K 4K 5AJ5K# :J5K# :J5K# J5/K# 5K K KK# K  K# #K;c                V   / pR p V P                   P                  W4       \        P                  ! 4       p\        P
                  ! W#VVP                  4       V P                   4      w  reVP                  4        V ;P                  ^,          un        V P                  V P                  8  d#   V P                  P                  R4       RV n        V P	                  WVP                  4      p \        WR,          4      '       d   VP                  V4       MV F  p	VP!                  V	4       K  	  VP#                  4        \        P                  ! 4       V,
          p
V P                  P%                  WbWZ4       \'        VR4      '       d   VP#                  4         T P                   P=                  YYV4       R #   \        P                  ! 4       T,
          p
T P                  P%                  YbYZ4       \'        TR4      '       d   TP#                  4        i i ; i  \(         d+    \*        P,                  ! \.        P0                  ! 4       !    L\2         dX    T'       dN   TP4                  '       d<   T P                  P7                  R4       \*        P8                  ! T4       \;        4       hh i ; i  \2         d     T P                  P7                  R4        R # i ; i   T P                   P=                  YYV4       i   \2         d    T P                  P7                  R4        i i ; i; i)Nz,Autorestarting worker after current request.Fzwsgi.file_wrapperr]   zError handling requestzException in post_request hook)rI   pre_requestr   nowr   creategetsocknameforce_closer/   max_requestsr8   r9   r=   start_response
isinstance
write_filewriter]   accesshasattrr)   r   reraisesysexc_info	Exceptionheaders_sentrb   rd   rY   post_request)r   r   re   r   r   environresprequest_startrespiteritemrequest_times   &&&&&      r   rU   SyncWorker.handle_request   sL   )	EHH  +$LLNM KKT(0(<(<(>JMD
 GGqLGww$+++LM"
yy*=*=>H%h0C(DEEOOH- (

4( !)

'||~=7A8W--NN$E%%d?#  (||~=7A8W--NN$ . 	*LL#,,.) 	))) ""#;<##F+#o%	  E""#CDEE%%d? E""#CDEs   C$H +AF8 ?AH J0 8AHH 2J-
K J-J-J-0=J--K 0&KKL(K<;L(<&L%"L($L%%L()r=   N)r   r   r   r   r   r3   r:   rA   rE   rN   r   rU   r   __classdictcell__)__classdict__s   @r   r   r      s5     ,&:0&. (D,E ,Er   r   )r   r+   r'   r$   rZ   rv   gunicornr   gunicorn.httpr   r   r   gunicorn.workersr   rx   r
   Workerr   r   r   r   <module>r      sH      	  
 
     !>) >|E |Er   