Skip to content

Commit 527615e

Browse files
committed
return undefined hosts and ports in error cases
1 parent ba2ef17 commit 527615e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/io/asyncsocket.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -710,6 +710,10 @@ static void on_connection(uv_stream_t *server, int status) {
710710
MVMObject *msg_box = MVM_repr_box_str(tc,
711711
tc->instance->boot_types.BOOTStr, msg_str);
712712
MVM_repr_push_o(tc, arr, msg_box);
713+
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTStr);
714+
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTInt);
715+
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTStr);
716+
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTInt);
713717
});
714718
});
715719
}
@@ -742,7 +746,12 @@ static void listen_setup(MVMThreadContext *tc, uv_loop_t *loop, MVMObject *async
742746
tc->instance->VMString, uv_strerror(r));
743747
MVMObject *msg_box = MVM_repr_box_str(tc,
744748
tc->instance->boot_types.BOOTStr, msg_str);
749+
745750
MVM_repr_push_o(tc, arr, msg_box);
751+
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTStr);
752+
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTInt);
753+
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTStr);
754+
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTInt);
746755
});
747756
MVM_repr_push_o(tc, t->body.queue, arr);
748757
});

0 commit comments

Comments
 (0)