freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] tsql connects but prompt incs 1, 2, 3
- From: "Jackson, Craig" <Craig.Jackson AT cengage.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] tsql connects but prompt incs 1, 2, 3
- Date: Wed, 1 Dec 2010 22:14:26 -0500
isql prompts for the password before opening the connection.
I think the idea is to get the user-interface elements which potentially
could wait a long time done before opening the connection. If you prompt
between the connect and sending the login packet, the server could time out
the connection if the user doesn't type the password fast enough.
Craig Jackson
-----Original Message-----
From: freetds-bounces AT lists.ibiblio.org
[mailto:freetds-bounces AT lists.ibiblio.org] On Behalf Of James K. Lowden
Sent: Wednesday, December 01, 2010 9:31 PM
To: FreeTDS Development Group
Subject: Re: [freetds] tsql connects but prompt incs 1, 2, 3
Ryp Walters wrote:
> In
> reviewing tsql.c file, the connection attempt starts afterwards.
Thanks for the suggestion. I added your text to my local working copy of
the tsql man page.
Your observation, however, is more to the point: the password should be
requested only after the connection is formed, to send the login packet.
It would be a nice refinement, and dovetails with my effort to separate
clearly the connection from the login.
--jkl
_______________________________________________
FreeTDS mailing list
FreeTDS AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/freetds
-
Re: [freetds] tsql connects but prompt incs 1, 2, 3,
Ryp Walters, 12/01/2010
-
Re: [freetds] tsql connects but prompt incs 1, 2, 3,
James K. Lowden, 12/01/2010
- Re: [freetds] tsql connects but prompt incs 1, 2, 3, Jackson, Craig, 12/01/2010
-
Re: [freetds] tsql connects but prompt incs 1, 2, 3,
James K. Lowden, 12/01/2010
Archive powered by MHonArc 2.6.24.