Index: third_party/mojo/src/mojo/public/python/mojo_bindings/reflection.py |
diff --git a/third_party/mojo/src/mojo/public/python/mojo_bindings/reflection.py b/third_party/mojo/src/mojo/public/python/mojo_bindings/reflection.py |
index 35b8ff294a16019dc07e16d1d59ea23e6083d457..cec05faec5286c2cad81ea224723b9fa61c38a65 100644 |
--- a/third_party/mojo/src/mojo/public/python/mojo_bindings/reflection.py |
+++ b/third_party/mojo/src/mojo/public/python/mojo_bindings/reflection.py |
@@ -12,6 +12,7 @@ import sys |
import mojo_bindings.messaging as messaging |
import mojo_bindings.promise as promise |
import mojo_bindings.serialization as serialization |
+import mojo_system |
class MojoEnumType(type): |
@@ -273,6 +274,10 @@ class InterfaceManager(object): |
router.Start() |
+ def NewRequest(self): |
+ pipe = mojo_system.MessagePipe() |
+ return (self.Proxy(pipe.handle0), InterfaceRequest(pipe.handle1)) |
+ |
def _InternalProxy(self, router, error_handler): |
if error_handler is None: |
error_handler = _ProxyErrorHandler() |
@@ -550,6 +555,7 @@ def _StubAccept(methods): |
# Close the connection in case of error. |
logging.warning( |
'Error occured in accept method. Connection will be closed.') |
+ logging.debug("Exception", exc_info=True) |
if self.impl.manager: |
self.impl.manager.Close() |
return False |