[Bug 3096] New: sftp requires multiple round trips to do a write with a fsync()

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Nov 20 05:13:21 AEDT 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=3096

            Bug ID: 3096
           Summary: sftp requires multiple round trips to do a write with
                    a fsync()
           Product: Portable OpenSSH
           Version: 8.1p1
          Hardware: Other
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: sftp
          Assignee: unassigned-bugs at mindrot.org
          Reporter: shawn at git.icu

https://libssh2.org/libssh2_sftp_fsync.html

Correct me if I am wrong, but the sftp protocol seems to require
multiple round trips to do a write followed by a fsync. Perhaps O_SYNC
is a solution here. The issue is that sftp can be over very high
latency links.

I edit source code over sftp. Very few editors do their IO on a
separate thread (vscode is an exception) and thus can be used for this.
But even if they can, the latency is horrible, because of multiple
round trips. And I *do* want fsync behavior, and while sync() calls are
notorious for being expensive, in this case the round trips are more
expensive.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list