Skip to Content.
Sympa Menu

freetds - Re: [freetds] new network timeout code

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "James K. Lowden" <jklowden AT freetds.org>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] new network timeout code
  • Date: Mon, 8 Jan 2007 21:54:57 -0500

ZIGLIO, Frediano, VF-IT wrote:
> I see you call tds_select before write. Well... this was the way some
> months ago. I changed to call write before in an (paranoid) attempt to
> reduce system calls using operating system tcp buffers. The idea is to
> use always unblocking sockets and call select only when needed.

"Premature optimization is the root of all evil." I'm following Stevens's
example. When this settles down and we know cancel & timeout processing
works, we can look at optimizing reads & writes in the same way.

Whether we do or don't won't matter IMHO. Syscalls are very cheap
compared to network I/O, and the memory consumed is minimal. I doubt the
client will show any performance change.

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page