#NEWLINE# def handle( self , sock , addr ) : #NEWLINE# #INDENT# 'Intercepts calls to :meth:`~slimta.edge.EdgeServer.handle`, reads\n        the proxy protocol header, and then resumes the original call.\n\n        ' #NEWLINE# try : #NEWLINE# #INDENT# ( src_addr , _ ) = self . process_pp_v2 ( sock , b'' ) #NEWLINE# #UNINDENT# except LocalConnection : #NEWLINE# #INDENT# log . proxyproto_local ( sock ) #NEWLINE# return #NEWLINE# #UNINDENT# except AssertionError as exc : #NEWLINE# #INDENT# log . proxyproto_invalid ( sock , exc ) #NEWLINE# src_addr = invalid_pp_source_address #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# log . proxyproto_success ( sock , src_addr ) #NEWLINE# #UNINDENT# return super ( ProxyProtocolV2 , self ) . handle ( sock , src_addr )