Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!decwrl!pa.dec.com!decuac!hussar.dco.dec.com!mjr From: mjr@decuac.dec.com (Marcus J. Ranum) Newsgroups: comp.unix.programmer Subject: timeout on connect(2) call? Message-ID: <1991Feb06.181726.2735@decuac.dec.com> Date: 6 Feb 91 18:17:26 GMT Organization: Digital Equipment Corp., Washington Ultrix Resource Center Lines: 9 Flame-Content: 0% Originator: mjr@hussar.dco.dec.com Someone a few days ago was asking if there's a way to set a timeout on a connect(2) call - similarly to the timeouts you can set in a select(2). Did anyone have an answer to this? Turns out I need to do something similar. TFM says if you try to connect on a nonblocking socket, you'll get an EWOULDBLOCK if it would block - but I'd like to be able to specify the time a little more precisely. Is there an elegant way to do this? mjr.