diff --git a/src/pipe_wrap.cc b/src/pipe_wrap.cc index 944d7c3e72c534..2d986932060c45 100644 --- a/src/pipe_wrap.cc +++ b/src/pipe_wrap.cc @@ -168,7 +168,7 @@ void PipeWrap::Bind(const FunctionCallbackInfo& args) { PipeWrap* wrap; ASSIGN_OR_RETURN_UNWRAP(&wrap, args.Holder()); node::Utf8Value name(args.GetIsolate(), args[0]); - int err = uv_pipe_bind(&wrap->handle_, *name); + int err = uv_pipe_bind2(&wrap->handle_, *name, name.length(), 0); args.GetReturnValue().Set(err); } @@ -237,9 +237,11 @@ void PipeWrap::Connect(const FunctionCallbackInfo& args) { ConnectWrap* req_wrap = new ConnectWrap(env, req_wrap_obj, AsyncWrap::PROVIDER_PIPECONNECTWRAP); - req_wrap->Dispatch(uv_pipe_connect, + req_wrap->Dispatch(uv_pipe_connect2, &wrap->handle_, *name, + name.length(), + 0, AfterConnect); TRACE_EVENT_NESTABLE_ASYNC_BEGIN1(TRACING_CATEGORY_NODE2(net, native),