Socket.accept problem via Socket.for_fd($stdin.fileno)

L

Lee Skillen

Hi,

I am experiencing a rather infuriating problem with Socket.accept on
Windows XP. The problem exists when I try to create a Socket from
for_fd whilst passing it $stdin.fileno - When the code tries to perform
a Socket.accept it responds with a rather vague error:

#<Errno::ENAMETOOLONG:Filename too long>

An example of the code would be:

server = Socket.for_fd($stdin.fileno)
ns, = server.accept

For those interested in background information (might help with my
case,) this code exists within the 'Pure Ruby' version of FastCGI. I am
trying to run the application as a FastCGI application, and to be
honest, I am tearing my hair out at times. ;) I must have tried a dozen
different methods to get it working via FastCGIServer.

Any help is truly appreciated! Thanks in advance all.

Lee Skillen
 
N

nobu.nokada

Hi,

At Thu, 11 Sep 2003 22:14:17 +0900,
Lee said:
I am experiencing a rather infuriating problem with Socket.accept on
Windows XP. The problem exists when I try to create a Socket from
for_fd whilst passing it $stdin.fileno - When the code tries to perform
a Socket.accept it responds with a rather vague error:

#<Errno::ENAMETOOLONG:Filename too long>

I guess this has been fixed already in CVS.

Wed Aug 27 05:10:15 2003 NAKAMURA Usaku <[email protected]>

* win32/win32.c (map_errno): support winsock error.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top