Skip to content

Commit

Permalink
return undefined hosts and ports in error cases
Browse files Browse the repository at this point in the history
  • Loading branch information
timo committed Aug 11, 2017
1 parent ba2ef17 commit 527615e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/io/asyncsocket.c
Expand Up @@ -710,6 +710,10 @@ static void on_connection(uv_stream_t *server, int status) {
MVMObject *msg_box = MVM_repr_box_str(tc,
tc->instance->boot_types.BOOTStr, msg_str);
MVM_repr_push_o(tc, arr, msg_box);
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTStr);
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTInt);
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTStr);
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTInt);
});
});
}
Expand Down Expand Up @@ -742,7 +746,12 @@ static void listen_setup(MVMThreadContext *tc, uv_loop_t *loop, MVMObject *async
tc->instance->VMString, uv_strerror(r));
MVMObject *msg_box = MVM_repr_box_str(tc,
tc->instance->boot_types.BOOTStr, msg_str);

MVM_repr_push_o(tc, arr, msg_box);
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTStr);
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTInt);
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTStr);
MVM_repr_push_o(tc, arr, tc->instance->boot_types.BOOTInt);
});
MVM_repr_push_o(tc, t->body.queue, arr);
});
Expand Down

0 comments on commit 527615e

Please sign in to comment.