mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
Merge branch '1899-fix-tcp-accept-windows' into 'master'
isc_uv_import wrapper must pass UV__IPC_SOCKET_XFER_TCP_CONNECTION, not SERVER Closes #1899 See merge request isc-projects/bind9!3618
This commit is contained in:
@@ -72,6 +72,7 @@ isc_uv_export(uv_stream_t *stream, isc_uv_stream_info_t *info) {
|
||||
if (xfer_info.delayed_error != 0) {
|
||||
return (xfer_info.delayed_error);
|
||||
}
|
||||
INSIST(xfer_type == UV__IPC_SOCKET_XFER_TCP_CONNECTION);
|
||||
info->type = UV_TCP;
|
||||
info->socket_info = xfer_info.socket_info;
|
||||
return (0);
|
||||
@@ -84,7 +85,7 @@ isc_uv_import(uv_stream_t *stream, isc_uv_stream_info_t *info) {
|
||||
}
|
||||
|
||||
return (uv__tcp_xfer_import(
|
||||
(uv_tcp_t *)stream, UV__IPC_SOCKET_XFER_TCP_SERVER,
|
||||
(uv_tcp_t *)stream, UV__IPC_SOCKET_XFER_TCP_CONNECTION,
|
||||
&(uv__ipc_socket_xfer_info_t){
|
||||
.socket_info = info->socket_info }));
|
||||
}
|
||||
|
Reference in New Issue
Block a user