def feed_eof ( self ) : self . _incoming . write_eof ( ) ssldata , appdata = self . feed_ssldata ( b'' ) assert appdata == [ ] or appdata == [ b'' ]
python sftp eof during negotiation
Send a potentially ragged EOF .
def feed_eof(self):
        """Send a potentially "ragged" EOF.

        This method will raise an SSL_ERROR_EOF exception if the EOF is
        unexpected.
        """
        self._incoming.write_eof()
        ssldata, appdata = self.feed_ssldata(b'')
        assert appdata == [] or appdata == [b'']