diff options
author | Eugene Ostroukhov <eostroukhov@chromium.org> | 2017-01-18 10:18:32 -0800 |
---|---|---|
committer | Eugene Ostroukhov <eostroukhov@chromium.org> | 2017-01-20 09:10:37 -0800 |
commit | ba776b3a56642d4cade5fa26c27c654bb6dde759 (patch) | |
tree | 981d4052dc2d94f4682a8e65587b498e61519b15 /src/inspector_socket_server.h | |
parent | 974ecb05988da472d9f8cb58bf5e9d725539daeb (diff) | |
download | node-new-ba776b3a56642d4cade5fa26c27c654bb6dde759.tar.gz |
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 <info@bnoordhuis.nl>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'src/inspector_socket_server.h')
-rw-r--r-- | src/inspector_socket_server.h | 2 |
1 files changed, 2 insertions, 0 deletions
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_; |