Skip to content
This repository was archived by the owner on Aug 11, 2020. It is now read-only.

Commit 7b1bef2

Browse files
committed
fixup! quic: use UDP code from dgram
1 parent 4de6721 commit 7b1bef2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/node_quic_socket.cc

+2-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ void QuicSocket::OnAfterBind() {
163163

164164
CHECK_EQ(udp_->GetSockName(addr, &addrlen), 0);
165165
local_address_.Copy(addr);
166-
Debug(this, "Socket bound\n");
166+
Debug(this, "Socket bound");
167167

168168
socket_stats_.bound_at = uv_hrtime();
169169
}
@@ -512,6 +512,7 @@ bool QuicSocket::SendRetry(
512512
tokenlen);
513513
if (nwrite <= 0)
514514
return false;
515+
buf.Realloc(nwrite);
515516
return Send(addr, std::move(buf), "retry") == 0;
516517
}
517518

0 commit comments

Comments
 (0)