From ba776b3a56642d4cade5fa26c27c654bb6dde759 Mon Sep 17 00:00:00 2001 From: Eugene Ostroukhov Date: Wed, 18 Jan 2017 10:18:32 -0800 Subject: inspector: no crash when WS server can't start This change also changes error message to make it consistent with the one printed by the debugger. Fixes: https://github.com/nodejs/node/issues/10858 PR-URL: https://github.com/nodejs/node/pull/10878 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- src/inspector_socket_server.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/inspector_socket_server.h') diff --git a/src/inspector_socket_server.h b/src/inspector_socket_server.h index 48ebc5353f..b82d9ee601 100644 --- a/src/inspector_socket_server.h +++ b/src/inspector_socket_server.h @@ -33,6 +33,7 @@ class InspectorSocketServer { public: using ServerCallback = void (*)(InspectorSocketServer*); InspectorSocketServer(SocketServerDelegate* delegate, + const std::string& host, int port, FILE* out = stderr); bool Start(uv_loop_t* loop); @@ -65,6 +66,7 @@ class InspectorSocketServer { uv_loop_t* loop_; SocketServerDelegate* const delegate_; + const std::string host_; int port_; std::string path_; uv_tcp_t server_; -- cgit v1.2.1