mirror of
https://github.com/deavmi/birchwood
synced 2024-09-20 11:22:53 +02:00
Client
- When the remote host closes the connection and we are in `unittest` build then purposefully crash
This commit is contained in:
parent
2b5da1eb9a
commit
8199b8b2a4
@ -1017,6 +1017,13 @@ public class Client : Thread
|
|||||||
import std.stdio;
|
import std.stdio;
|
||||||
writeln("(peek) bytesRead: '", bytesRead, "' (status var or count)");
|
writeln("(peek) bytesRead: '", bytesRead, "' (status var or count)");
|
||||||
writeln("(peek) currentData: '", currentData, "'");
|
writeln("(peek) currentData: '", currentData, "'");
|
||||||
|
|
||||||
|
// On remote end closing connection
|
||||||
|
if(bytesRead == 0)
|
||||||
|
{
|
||||||
|
writeln("About to do the panic!");
|
||||||
|
*cast(byte*)0 = 2;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user