Path: csiph.com!usenet.pasdenom.info!news.albasani.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'responding': 0.04; 'subject:Python': 0.05; 'subject:Apache': 0.07; '(it': 0.09; '(rather': 0.09; 'finishes': 0.09; 'firewall': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Problem': 0.09; 'used)': 0.09; 'library': 0.13; 'blocking': 0.13; '"don\'t': 0.16; '"sean': 0.16; 'anyone?': 0.16; 'bieber': 0.16; 'declaimed': 0.16; 'email addr:ix.netcom.com': 0.16; 'email name:wlfraed': 0.16; 'from:addr:ix.netcom.com': 0.16; 'from:addr:wlfraed': 0.16; 'from:name:dennis lee bieber': 0.16; 'low-level': 0.16; 'received:wlfraed': 0.16; 'url:netcom': 0.16; 'url:wlfraed': 0.16; 'wulfraed': 0.16; '(i.e.': 0.17; 'connections': 0.21; 'url:home': 0.21; 'mode': 0.25; 'code': 0.26; 'problem': 0.29; 'server': 0.30; 'ran': 0.30; 'threads.': 0.30; '(the': 0.30; '(as': 0.31; 'ftp': 0.32; 'thread': 0.32; "i've": 0.32; 'does': 0.32; 'initial': 0.32; 'sort': 0.33; "won't": 0.33; 'too': 0.33; 'fri,': 0.34; 'test': 0.34; 'header:X-Complaints- To:1': 0.34; 'lee': 0.34; 'to:addr:python-list': 0.35; 'connection': 0.36; 'two': 0.36; 'received:org': 0.36; 'charset :us-ascii': 0.37; 'could': 0.38; 'think': 0.38; 'getting': 0.38; 'plain': 0.39; 'suggestions': 0.39; 'to:addr:python.org': 0.40; 'internet': 0.64; 'it)': 0.67; 'passive': 0.67; 'receive': 0.68; 'traffic': 0.68; 'dennis': 0.73; 'initiates': 0.84; 'responds': 0.84; 'inbound': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Dennis Lee Bieber Subject: Re: Python - CGI-BIN - Apache Timeout Problem Date: Fri, 02 Mar 2012 22:35:31 -0500 Organization: > Bestiaria Support Staff < References: <6FC169072CBFF3409B6E74F50175A4650497A3F9@xmb-sjc-215.amer.cisco.com> <6FC169072CBFF3409B6E74F50175A4650497A445@xmb-sjc-215.amer.cisco.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: adsl-99-85-12-49.dsl.klmzmi.sbcglobal.net X-Newsreader: Forte Agent 3.3/32.846 X-No-Archive: YES X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 25 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1330745745 news.xs4all.nl 6851 [2001:888:2000:d::a6]:48148 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:21159 On Fri, 2 Mar 2012 13:43:11 -0800, "Sean Cavanaugh (scavanau)" declaimed the following in gmane.comp.python.general: > > The way the code works if you want to send through the firewall (i.e. SERVER->FIREWALL->SERVER) I split the process into two threads. One is listening on the egress, then I send on the ingress. The main waits until the thread finishes (it times out after 2 seconds). I had to do this b/c scapy (the library I used) won't let me send pcaps while I receive them. This lets me see packets on both sides (i.e. did that sort of internet traffic go through the firewall). The reason I think this could be a problem is when I ran a test where I sent to the firewall (rather than through it) and my program does not need to thread the webserver works fine...... > > Suggestions anyone? > Other than the simplistic "don't do that"... You may be encountering the style of situation that FTP PASSIVE mode is most used for -- getting past a firewall that is blocking inbound connections (as I recall, much simplified, plain FTP initiates a connection outbound, and then the server responds by initiating a connection back; passive mode has the server responding on the same connection that was used for the initial outbound traffic) {It has been way too long since I've coded any low-level network traffic} -- Wulfraed Dennis Lee Bieber AF6VN wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/