EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Uploading a file with SFTP from an EPICS driver
From: Michael Davidsaver via Tech-talk <[email protected]>
To: "J. Lewis Muir" <[email protected]>, Mark Rivers <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 14 Nov 2019 08:38:27 -0800
On 11/14/19 8:05 AM, J. Lewis Muir via Tech-talk wrote:
> On 11/14, Mark Rivers via Tech-talk wrote:
>> So on Linux running the "curl" command via a call to system() is actually almost 3 times faster than calling either of the libraries directly.  This surprises me.
> 
> That makes no sense.

SFTP (which is based on SSH, not SSL/TLS) is quite a complicated protocol
with a lot of options.  Two slowdowns I've seen are lack of a reverse
DNS entry, and authentication fallback (notable krb5).

My first suggestion is to look at configuration options.  eg. it isn't
immediately clear to me whether libssh will read "/etc/ssh/ssh_config"
or "~/.ssh/config".

> There must be something different about how you're
> using libcurl vs. curl.  Have you tried curl's "--libcurl <file>"
> option?  I would try that.  Basically, take the curl command line that
> works, and then add the "--libcurl <file>" option to it, and it will
> emit C source code for a program using libcurl that does the same thing.
> Compare that with how you're using libcurl.
> 
> Lewis
> 


References:
Uploading a file with SFTP from an EPICS driver Mark Rivers via Tech-talk
Re: Uploading a file with SFTP from an EPICS driver J. Lewis Muir via Tech-talk

Navigate by Date:
Prev: Re: Uploading a file with SFTP from an EPICS driver J. Lewis Muir via Tech-talk
Next: RE: Uploading a file with SFTP from an EPICS driver Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Uploading a file with SFTP from an EPICS driver J. Lewis Muir via Tech-talk
Next: RE: Uploading a file with SFTP from an EPICS driver Mark Rivers via Tech-talk
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 14 Nov 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·