Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21159 > unrolled thread

Re: Python - CGI-BIN - Apache Timeout Problem

Started byDennis Lee Bieber <wlfraed@ix.netcom.com>
First post2012-03-02 22:35 -0500
Last post2012-03-02 22:35 -0500
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Python - CGI-BIN - Apache Timeout Problem Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-03-02 22:35 -0500

#21159 — Re: Python - CGI-BIN - Apache Timeout Problem

FromDennis Lee Bieber <wlfraed@ix.netcom.com>
Date2012-03-02 22:35 -0500
SubjectRe: Python - CGI-BIN - Apache Timeout Problem
Message-ID<mailman.360.1330745745.3037.python-list@python.org>
On Fri, 2 Mar 2012 13:43:11 -0800, "Sean Cavanaugh (scavanau)"
<scavanau@cisco.com> 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/

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web