Skip to Content.
Sympa Menu

freetds - Re: [freetds] SO_LINGER options and l_linger value

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT schemamania.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] SO_LINGER options and l_linger value
  • Date: Sun, 18 Jul 2004 15:15:55 -0400

On Sun, 18 Jul 2004 <freddyz77 AT tin.it> wrote:

> SO_LINGER code removed from CVS.

Thanks. :-)

> I'm not convinced about SO_KEEPALIVE. If client have to receive a lot
> of data and wire got unplugged it keeps waiting.

I'll look at it again when I get to the timeout code.

AIUI, what's supposed to happen is that select(2) returns 0 on a timeout.
By default, a TDS connection has no timeout, so a reading client waits
forever. But, we can allow the client to set a query timeout (dbsettime).
The select(2) in read.c::goodread() should honor that timeout.

--jkl





Archive powered by MHonArc 2.6.24.

Top of Page