freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: James Cameron <james.cameron AT hp.com>
- To: TDS Development Group <freetds AT franklin.oit.unc.edu>
- Subject: Re: network unreachable with freetds
- Date: 09 Aug 2002 14:00:04 +1000
On Fri, 2002-08-09 at 13:03, Brian Bruns wrote:
> Instead of dumping to stderr which might not be desirable in some
> applications (PHP for instance) is it possible to use tds_client_msg() to
> alert the upper layer app of the problem?
It's a confusing situation.
src/tds/login.c already uses perror() to report to stderr, the code
there also uses a client message, and people already know to look at the
Apache error log.
Before my proposed patch, a failure to resolve a name should have
resulted in a "Server %s not found!" client message only. But a
connection failure results in the stderr output. Should this be a
client message?
Also, I'm not sure yet where the bogus IP is coming from. My review of
the lookup_host() path suggested that it would always return an empty
string as an IP if it could not resolve a name.
Or is it just data left in ip_addr member of config struct that isn't
ever cleared after alloc()? I think I'll find out once Casey replies.
--
James Cameron (james.cameron AT hp.com)
http://quozl.linux.org.au/ (or) http://quozl.netrek.org/
-
network unreachable with freetds,
Casey Letzia, 08/07/2002
- <Possible follow-up(s)>
- Re: network unreachable with freetds, James K . Lowden, 08/07/2002
- Re: network unreachable with freetds, Casey Letzia, 08/08/2002
- Re: network unreachable with freetds, Lowden, James K, 08/08/2002
- Re: network unreachable with freetds, Casey Letzia, 08/08/2002
- Re: network unreachable with freetds, Brian Bruns, 08/08/2002
- Re: network unreachable with freetds, James Cameron, 08/08/2002
- Re: network unreachable with freetds, James Cameron, 08/08/2002
- Re: network unreachable with freetds, Brian Bruns, 08/08/2002
- Re: network unreachable with freetds, Brian Bruns, 08/08/2002
- Re: network unreachable with freetds, James Cameron, 08/09/2002
- Re: network unreachable with freetds, Casey Letzia, 08/09/2002
Archive powered by MHonArc 2.6.24.