Re: sendfile()? Re: SO_LINGER dead: I get an immediate RST on 2.6.24?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Bill Fink
Date: Wednesday, January 14, 2009 - 1:32 am

On Wed, 14 Jan 2009, Rick Jones wrote:


With the shutdown(SHUT_WR)/read() approach, I would have had to set
a timeout on the read, to handle the case where the peer just went
away, whereas currently I just check elapsed time (I strive to make
nuttcp robust in such cases to allow it to be used reliably within
scripts run for example from cron).

Also, I was (perhaps unncessarily) worried that after the zero read(),
the socket would effectively be closed, and I wasn't sure then about
the reliability of using tcp_info to get the tcpi_total_retrans at that
point.

As with most things, there's more than one way to skin a cat.

						-Bill
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: sendfile()? Re: SO_LINGER dead: I get an immediate RST ..., Bill Fink, (Wed Jan 14, 1:32 am)