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 <2019> 2020 2021 2022 2023 2024 2025 | 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 <2019> 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | RE: Uploading a file with SFTP from an EPICS driver - Issue fixed! |
From: | Mark Rivers via Tech-talk <[email protected]> |
To: | "'Johnson, Andrew N.'" <[email protected]> |
Cc: | "[email protected]" <[email protected]> |
Date: | Tue, 19 Nov 2019 15:42:35 +0000 |
In my original post I also showed that using libssh2 with libssh2_sftp functions was just as slow as libcurl, 320 ms vs 120 ms using the curl command. I have now fixed the performance of libssh2 by adding this line to xpsSFTPUpload.cpp setsockopt(sockFD, SOL_TCP, TCP_NODELAY, &one, sizeof(one)); This is the time before adding that line: corvette:motorNewport/newportApp/src>../../../../bin/linux-x86_64/testSFTPUpload Calling xpsSFTPUpload Fingerprint: 89 36 E6 AF D0 11 C6 BA 21 CD 68 FC 26 0C 31 73 5C 4B CC 1A xpsSFTPUpload returned status=0, elapsed time=0.326530 This is the time after adding that line: corvette:motorNewport/newportApp/src>../../../../bin/linux-x86_64/testSFTPUpload Calling xpsSFTPUpload Fingerprint: 89 36 E6 AF D0 11 C6 BA 21 CD 68 FC 26 0C 31 73 5C 4B CC 1A xpsSFTPUpload returned status=0, elapsed time=0.115006 So now curl, libcurl, and libssh2 all take about 120 ms. Mark |