Commits

Ronny Pfannschmidt committed ec324fa

handle close_write for remote io

  • Participants
  • Parent commits 667d374

Comments (0)

Files changed (3)

File io-on-remote

 # HG changeset patch
-# Parent 19fcb47ca792a89f8479401b57e568c6f77c33d3
+# Parent 949b3405784291205dabfb0ca1f42d8b9a92ce93
 introduce creating a io on a gateway and proxying to it
 
 diff --git a/conftest.py b/conftest.py
  class Popen2IOMaster(Popen2IO):
      def __init__(self, args):
          self.popen = p = Popen(args, stdin=PIPE, stdout=PIPE)
-@@ -87,3 +91,77 @@ def create_io(spec):
+@@ -87,3 +91,79 @@ def create_io(spec):
          io.remoteaddress = spec.ssh
          return io
  
 +            control_chan.send(io.kill())
 +        elif data==RIO_REMOTEADDRESS:
 +            control_chan.send(io.remoteaddress)
++        elif data==RIO_CLOSE_WRITE:
++            control_chan.send(io.close_write())
 +    control_chan.setcallback(controll)
 +
 +if __name__ == "__channelexec__":
 unify-process-based-bootstrap
 socket-io-creation-split
 io-on-remote
+topologic-shutdown

File topologic-shutdown

+# HG changeset patch
+# Parent 0b929d167a8c9d84955c193832f8bf3ebb898423
+ensure gateways shut down before their io proxy is shut down
+