Date: Wed, 15 Sep 1999 11:06:16 -0700 From: "Rick Moore" <lrmoore@home.com> To: <freebsd-questions@FreeBSD.ORG> Subject: Hung sockets which leads to pthread question... Message-ID: <000801beffa5$0108e740$e5ee0118@chnd1.az.home.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_0005_01BEFF6A.5477DBB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I'm writing an internet application, and occasionally the sockets lock = up during read with no apparent time out. I've seen the same thing = happen under FreeBSD, Linux, and Windows NT, with various motherboards, = NIC cards, and ISPs. Bottom line: I have to deal with it. setsockopt with a RECV_TIMEOUT (<- I forget the exact syntax, please = excuse my script) doesn't appear to work. I need to be able to kill or interrupt a thread when it gets in this = state. FreeBSD doesn't seem to support pthread_cancel(). Although = signal functionality appears to exist, it doesn't seem to work using = sigaction() and pthread_kill(). I can't be the only person in the universe to deal with this. Does = anybody have some advice? Please respond directly or at least copy my = email address above. Regards, Rick ------=_NextPart_000_0005_01BEFF6A.5477DBB0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#f2f7ff> <DIV><FONT size=3D2>I'm writing an internet application, and = occasionally the=20 sockets lock up during read with no apparent time out. I've seen = the same=20 thing happen under FreeBSD, Linux, and Windows NT, with various = motherboards,=20 NIC cards, and ISPs. Bottom line: I have to deal with = it.</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>setsockopt with a RECV_TIMEOUT (<- I forget the = exact=20 syntax, please excuse my script) doesn't appear to work.</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>I need to be able to kill or interrupt a thread when = it gets=20 in this state. FreeBSD doesn't seem to support = pthread_cancel(). =20 Although signal functionality appears to exist, it doesn't seem to work = using=20 sigaction() and pthread_kill().</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>I can't be the only person in the universe to deal = with=20 this. Does anybody have some advice? Please respond directly = or at=20 least copy my email address above.</FONT></DIV> <DIV> </DIV> <DIV><FONT size=3D2>Regards,</FONT></DIV> <DIV><FONT size=3D2>Rick</FONT></DIV> <DIV> </DIV> <DIV> </DIV></BODY></HTML> ------=_NextPart_000_0005_01BEFF6A.5477DBB0-- 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?000801beffa5$0108e740$e5ee0118>