cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: PATCH: Allow telnet to be used programatically.

From: Ben Greear <greearb_at_candelatech.com>
Date: Wed, 31 Mar 2010 08:43:54 -0700

On 03/31/2010 08:35 AM, Daniel Stenberg wrote:
> On Wed, 31 Mar 2010, Ben Greear wrote:
>
>> Well, 'curl' sets a custom read method, but it doesn't want to use it
>> for telnet. Maybe other apps do the same..and if so, unless we
>> specifically do the CURLOPT_FORCE_USE_READFUNC logic, it will break
>> backwards compat.
>
> I'm not sure I agree that enabling a feature that was just abused
> previously and didn't show is actually breaking backwards compatibility.
>
> So in what way does it not work with that callback?

At the least, it wasn't flushing data promptly to the screen, but
rather was buffering it. If you blindly typed in user-name
and password and hit enter a few times, you could log in..but it
wasn't really usable.

I was also suspicious that comparing function pointers might not
work in all cases, but that may just be more paranoia
(I usually program other than 'C').

Thanks,
Ben

-- 
Ben Greear <greearb_at_candelatech.com>
Candela Technologies Inc  http://www.candelatech.com
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2010-03-31