My program starts a connection to a usenet server like this:
s = nntplib.NNTP(self.nserver, 119, self.nuser, self.npass)
But sometimes there's a problem. The connection is not made and the program waits for a response indefinitely.
How can I make it check for a timeout?