Re: Unable to Create IPC Socket (Bind)
Jim Boutcher (jimb@novia.net)
Tue, 26 Aug 1997 21:31:54 -0500
Message-Id: <199708270230.VAA09300@oasis.novia.net>
From: "Jim Boutcher" <jimb@novia.net>
To: <fastcgi-developers@OpenMarket.com>
Subject: Re: Unable to Create IPC Socket (Bind)
Date: Tue, 26 Aug 1997 21:31:54 -0500
I ** REALLY ** hate replying to my own questions... :)
After seeing that my socket filename was being shortened by one letter on
the end, I just made a quick change:
static int OS_BuildSockAddrUn(
char *bindPath,
struct sockaddr_un *servAddrPtr,
int *servAddrLen)
{
/*
int bindPathLen = strlen(bindPath);
*/
int bindPathLen = strlen(bindPath)+1;
....
And the server now actually starts! But now I'm getting those mbox errors
again.. Does anyone know why my situation would require a code change to get
it running?
-----Original Message-----
From: Jim Boutcher <jimb@novia.net>
To: fastcgi-developers@OpenMarket.com <fastcgi-developers@OpenMarket.com>
Date: Tuesday, August 26, 1997 8:20 PM
Subject: Unable to Create IPC Socket (Bind)
>Also having off and on problems with the error:
>
>AppClass: could not create IPC socket
>
>I put the -socket in my appclass directive, like: -socket room1
>
>When I get the error, it hangs.. Here's what the relevant portion of /tmp
>looks like:
>
>srwxrwxrwx 1 root bin 0 Aug 26 18:42 room
>
>I've been debugging the problem, and I don't see why room1 isn't listed
>there.. Here's the flow:
>
>BindPath is equal to "/tmp/room1" when being memcopied to the
>servAddrPtr->sun_path (In OS_BuildSockAddrUn).
>
>I don't know if this is right, but for some reason the OS_BuildSockAddrUn
is
>being called twice in my code.. Only have it set for 1 process.
>
>After that, OS_Bind calls bind(), which fails.. Errno=48 (EADDRINUSE).. ???
>
>Then the Appclass: Could not create IPC socket is displayed, and it hangs
>till it gets a CTRL-C..
>
>Any ideas?
>
>Jim Boutcher
>