[Haskell-cafe] Question about fastcgi

Mauricio briqueabraque at yahoo.com
Fri Nov 28 08:49:06 EST 2008


I'm learnng to use fastcgi and, reading the examples,
I see the main "loop" is like this:

main = runFastCGI my_work

However, isn't a fastcgi program supposed to choose
a port where to listen to calls? For instance, in this
C example:


doesn't the line

listen_socket = FCGX_OpenSocket(":8002", 2000);

says it's listening to port 8002? I read the code
for fastcgi, from hackage, and I can't find anything
related to ports like, for instance, a default port.
Am I understanding something the wrong way?


More information about the Haskell-Cafe mailing list