mirror of
https://github.com/sshuttle/sshuttle.git
synced 2025-07-08 10:37:25 +02:00
fix: bad file descriptor error in windows, fix pytest errors
This commit is contained in:
@ -432,7 +432,8 @@ class Mux(Handler):
|
||||
def flush(self):
|
||||
set_non_blocking_io(self.wfile.fileno())
|
||||
if self.outbuf and self.outbuf[0]:
|
||||
wrote = _nb_clean(os.write, self.wfile.fileno(), self.outbuf[0])
|
||||
wrote = _nb_clean(self.wfile.write, self.outbuf[0])
|
||||
self.wfile.flush()
|
||||
debug2('mux wrote: %r/%d' % (wrote, len(self.outbuf[0])))
|
||||
if wrote:
|
||||
self.outbuf[0] = self.outbuf[0][wrote:]
|
||||
|
Reference in New Issue
Block a user