Skip to Content.
Sympa Menu

freetds - Re: [freetds] tdsdump SIGSEGV with mt apps

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] tdsdump SIGSEGV with mt apps
  • Date: Wed, 13 Apr 2005 10:37:43 -0400

liam AT inodes.org wrote:
> I had a look at the latest snapshot and it appears that much of
> the code around network I/O has changed. Has it been fixed? I was
> looking at goodread() and it still has bugs. What state is it in?
>
> I've made a number of changes to goodread() for it to properly support
> timeouts but it does not pass all of my test cases.
>
> It may be worth re-writing it from scratch. The function is filled with
> incorrect behaviour such as neglecting to call FD_ISSET() before
> recv() after the select().

The project needs your expertise. Patches would be welcome, of course,
but what we really lack is someone steeped in unix tcp/ip idiom.

My networking background goes back to X.25 and DECnet, and CTOS and VMS.
I've poked around and read about tcp/ip (man pages, RFCs, usenet FAQ,
tutorials), but it's a nontrivial task to take the libtds network i/o bull
by the horns, if you will.

I mused that going to an asynchronous model was necessary to support
timeouts correctly and to support all the programming models provided by
the client libraries. Frediano, as you saw, took my suggestion. He's
also the one who broke out net.c to separate pure networking from TDS
parsing.

I'm competent to fix db-lib problems. The networking side is a little
elusive. So if you want to join, as either coder or mentor, welcome.

Regards,

--jkl




Archive powered by MHonArc 2.6.24.

Top of Page