Skip to Content.
Sympa Menu

freetds - Re: [freetds] Can't reconnect, why?

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Péter András Felvégi" <petschy AT gmail.com>
  • To: freetds AT lists.ibiblio.org
  • Subject: Re: [freetds] Can't reconnect, why?
  • Date: Thu, 17 May 2007 12:17:00 +0200

> I connect to an mssql server successfully. Then, after some
> time the connection breaks because of the ISP: read/write errors
> (20004/20006). I detect this event, disconnect, then try to reconnect.
> The reconnect always fails, no matter how long I try. If I kill the
> process, and start my app again, the connect succeeds immediately.

I claim to have solved timeouts in the current snapshot. I think it's
quite possible that this scenario is related. If you would test it and
let us know, that would be a great service. If the current snapshot
*doesn't* work correctly, please include a TDSDUMP log and I will fix it.

I'm terribly sorry, but I've made a stupid mistake in my code and the
password was cleared in disconnect(), so the reconnect attempt failed
obviously. Lately I've added error handling for the case when no
userdata is attached to the DBPROCESS, so the logs made it clear
what's going on.

Again, sorry for the noise.

Regards, Peter




Archive powered by MHonArc 2.6.24.

Top of Page