From owner-freebsd-hackers Mon Mar 15 1:21: 7 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from obr.software602.cz (unknown [194.108.5.200]) by hub.freebsd.org (Postfix) with ESMTP id C3F6114D6B for ; Mon, 15 Mar 1999 01:20:48 -0800 (PST) (envelope-from bsd@obr.software602.cz) Received: from localhost (bsd@localhost) by obr.software602.cz (8.9.2/8.9.2) with ESMTP id KAA07076; Mon, 15 Mar 1999 10:16:29 +0100 (CET) (envelope-from bsd@obr.software602.cz) Date: Mon, 15 Mar 1999 10:16:27 +0100 (CET) From: FreeBsd To: Bosko Milekic Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: thread and socket In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG in multithreaded app is recvfrom only waiting for data, but cannot finish with EAGAIN error, when I set SO_RCVTIMEO. I need stop recv function after timeout. in the non threaded version rcv is finish after timeout (no data is received) , but in multi threaded ver doesn't stop and still is waiting for data. any data is not comming and ercvfrom is still wiating. WHY????? thanks. honza On Sun, 14 Mar 1999, Bosko Milekic wrote: > > I've had a little trouble understanding you... :-) > > Here's an excerpt from the man page, though... if this isn't what you were > looking for, please clarify a bit... > > --snip-- > In the non-threaded library getsockopt() is implemented as the > getsockopt syscall. > > In the threaded library, the getsockopt syscall is assembled to _thread_sys_getsockopt() > and getsockopt() is implemented as a function which locks s for read and > write, then calls _thread_sys_getsockopt(). > Before returning, getsockopt() unlocks s. > --snip-- > > Regards, > Bosko. > > -- > Bosko Milekic http://www.supernet.ca/~bmilekic/ > Delphi SuperNet voice: (+1) 514 281-7500 fax: (+1) 514 281-6599 > PGP Key available upon request. > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message