File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -260,6 +260,7 @@ static REBOOL Nonblocking_Mode(SOCKET sock)
260
260
if (sock -> handle ) WSACancelAsyncRequest (sock -> handle );
261
261
#endif
262
262
OS_Free (sock -> net .host_info );
263
+ sock -> net .host_info = NULL ;
263
264
sock -> socket = sock -> length ; // Restore TCP socket (see Lookup)
264
265
}
265
266
Original file line number Diff line number Diff line change @@ -170,6 +170,13 @@ Rebol [
170
170
--test-- "issue-441"
171
171
;@@ https://github.com/Oldes/Rebol-issues/issues/441
172
172
--assert unset? repeat n 1000000 [foreach a [1 2 3 ] []] ;- no crash
173
+
174
+ --test-- "issue-2445"
175
+ ;@@ https://github.com/Oldes/Rebol-issues/issues/2445
176
+ --assert not error? try [p: open tcp://localhost:10000 ]
177
+ loop 10 [--assert not error? try [close p open p]] ;- no crash
178
+ --assert not error? try [close p]
179
+
173
180
===end-group===
174
181
175
182
~~~end-file~~~
You can’t perform that action at this time.
0 commit comments