Date: Mon, 14 Feb 2000 17:38:18 -0500 (EST) From: Robert Watson <robert@cyrus.watson.org> To: freebsd-hackers@freebsd.org Subject: uthread: setsockopt while other threads blocked? Message-ID: <Pine.BSF.3.96.1000214173608.14689B-100000@fledge.watson.org>
next in thread | raw e-mail | index | archive | help
I'm using a threaded program to manage ipfw rules, and today discovered the hardware that you cannot simultaneously have a thread blocking on a recvfrom() on the raw socket to read icmp packets, and have another thread perform a setsockopt() to manipulate the ipfw rules. While it's easy to work around, opening a second raw socket, it seems like a bit of a wate, and results in more packet delivery to userland than necessary. Does the pthread spec address this? Would it be possible to set/getsockopt on a socket while it's in use? For example, retrieve peer information from a socket while a thread is blocked on reading the socket, or set buffering parameters? Thanks! Robert N M Watson robert@fledge.watson.org http://www.watson.org/~robert/ PGP key fingerprint: AF B5 5F FF A6 4A 79 37 ED 5F 55 E9 58 04 6A B1 TIS Labs at Network Associates, Safeport Network Services To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.1000214173608.14689B-100000>