1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-06 10:33:03 +00:00

More complete fix with some debugging tools.

This commit is contained in:
Calvin Rose
2023-07-02 13:04:42 -05:00
parent a5f4e4d328
commit 9bc5bec9f1
3 changed files with 58 additions and 27 deletions

View File

@@ -405,7 +405,7 @@ static void janet_stream_marshal(void *p, JanetMarshalContext *ctx) {
#ifdef JANET_WINDOWS
/* TODO - ref counting to avoid situation where a handle is closed or GCed
* while in transit, and it's value gets reused. DuplicateHandle does not work
* for network sockets, and in general for winsock it is better to nipt duplicate
* for network sockets, and in general for winsock it is better to not duplicate
* unless there is a need to. */
HANDLE duph = INVALID_HANDLE_VALUE;
if (s->flags & JANET_STREAM_SOCKET) {