コード例 #1
0
    def client_run(self, conn, addr):
        if self.watchUpstream:
            c = proxy_client.proxy_HTTP_Client(conn, addr, self.config, self.watchUpstream, self.monLock, self.monitor.threadsToKill)
        else:
            c = proxy_client.proxy_HTTP_Client(conn, addr, self.config, self.watchUpstream)
        if self.config['DEBUG'].get('NOTHREADS'):
	        c.run()
        else:
        	thread.start_new_thread(c.run, ())
コード例 #2
0
ファイル: server.py プロジェクト: cyril-wx/mutils
 def client_run(self, conn, addr):
     if self.watchUpstream:
         c = proxy_client.proxy_HTTP_Client(conn, addr, self.config,
                                            self.watchUpstream,
                                            self.monLock,
                                            self.monitor.threadsToKill)
     else:
         c = proxy_client.proxy_HTTP_Client(conn, addr, self.config,
                                            self.watchUpstream)
     thread.start_new_thread(c.run, ())
コード例 #3
0
ファイル: server.py プロジェクト: scarvalhojr/ntlmaps
 def client_run(self, conn, addr):
     if self.config["GENERAL"]["PARENT_PROXY"]:
         # working with MS Proxy
         if self.watchUpstream:
             # Locking here is really more of a 'nice to have';
             # if performance suffers on heavy load we can trade
             # drops here for drops on bad proxy later.
             self.monLock.acquire()
             c = proxy_client.proxy_HTTP_Client(conn, addr, self.config)
             self.monitor.threadsToKill.append(c)
             self.monLock.release()
         else:
             c = proxy_client.proxy_HTTP_Client(conn, addr, self.config)
     else:
         # working with MS IIS and any other
         c = www_client.www_HTTP_Client(conn, addr, self.config)
     thread.start_new_thread(c.run, ())
コード例 #4
0
ファイル: server.py プロジェクト: zwessels/ntlmaps
 def client_run(self, conn, addr):
     if self.config['GENERAL']['PARENT_PROXY']:
         # working with MS Proxy
         if self.watchUpstream:
             # Locking here is really more of a 'nice to have';
             # if performance suffers on heavy load we can trade
             # drops here for drops on bad proxy later.
             self.monLock.acquire()
             c = proxy_client.proxy_HTTP_Client(conn, addr, self.config)
             self.monitor.threadsToKill.append(c)
             self.monLock.release()
         else:
             c = proxy_client.proxy_HTTP_Client(conn, addr, self.config)
     else:
         # working with MS IIS and any other
         c = www_client.www_HTTP_Client(conn, addr, self.config)
     thread.start_new_thread(c.run, ())
コード例 #5
0
ファイル: server.py プロジェクト: mtesauro/legacy-owasp-wte
    def client_run(self, conn, addr):
        ""
        if self.config['GENERAL']['PARENT_PROXY']:
            # working with MS Proxy
            c = proxy_client.proxy_HTTP_Client(conn, addr, self.config)
        else:
            # working with MS IIS and any other
            c = www_client.www_HTTP_Client(conn, addr, self.config)

        thread.start_new_thread(c.run, ())
コード例 #6
0
ファイル: server.py プロジェクト: Juliusz/ntlmaps
 def client_run(self, conn, addr):
     if self.watchUpstream:
         c = proxy_client.proxy_HTTP_Client(conn, addr, self.config, self.watchUpstream, self.monLock, self.monitor.threadsToKill)
     else:
         c = proxy_client.proxy_HTTP_Client(conn, addr, self.config, self.watchUpstream)
     thread.start_new_thread(c.run, ())