From owner-freebsd-questions Sat Oct 21 23:43: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail1.chat.ru (mail1.chat.ru [212.24.32.14]) by hub.freebsd.org (Postfix) with ESMTP id 5701E37B4C5 for ; Sat, 21 Oct 2000 23:43:00 -0700 (PDT) Received: from gnu.chat.ru ([212.24.32.10] helo=mail.chat.ru) by mail1.chat.ru with esmtp (Exim 3.15 #1) id 13nEop-00089r-00 for freebsd-questions@freebsd.org; Sun, 22 Oct 2000 10:41:19 +0400 Received: from p26.gw.lvl.ru ([194.67.189.26] helo=chat.ru) by mail.chat.ru with asmtp (Exim 3.16 #1) id 13nEqQ-000O0d-00 for freebsd-questions@freebsd.org; Sun, 22 Oct 2000 10:42:59 +0400 Message-ID: <39F28EC8.A15E6FCD@chat.ru> Date: Sun, 22 Oct 2000 10:52:56 +0400 From: jadream X-Mailer: Mozilla 4.72 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: strange connects through UNIX sockets Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Authorized: jadream Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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