Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Oct 2000 10:52:56 +0400
From:      jadream <jadream@chat.ru>
To:        freebsd-questions@freebsd.org
Subject:   strange connects through UNIX sockets
Message-ID:  <39F28EC8.A15E6FCD@chat.ru>

next in thread | raw e-mail | index | archive | help
Hi!

I have generic i386 machine with FreeBSD 3.2 on it.
There's two programs - server and client - both compiled with -pthread
option as I'm using kernel threads there.
Client is connecting to server via local UNIX socket.
That's an idea :0)

In reality.

For Server:

socket() returns some meaning socket handle
bind() returns 0 showing binding to /DS1/req01 is OK
chmod() returns 0 telling making pathname avaliable for everyone is OK
listen() returns 0 too
accept() hangs endlessly


For Client:

socket() returns good handle
connect() returns 0 showing connection is OK
send() is hanging endlessly (if I use IPC_NOWAIT flag - returns valid
size of a sent message but sever's accept() still hangs)


Maybe I'm missing something evident? :0)

Thanks for any help, Alex.




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?39F28EC8.A15E6FCD>