[freetds] new network timeout code
James K. Lowden
jklowden at freetds.org
Mon Jan 8 21:54:57 EST 2007
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
More information about the FreeTDS
mailing list