Skip to content

Commit 9b5fde0

Browse files
Enable TCP Read Timeout (MCCTeam#1348)
Fix attempt for MCCTeam#1321 Co-authored-by: ORelio <[email protected]>
1 parent 20f6375 commit 9b5fde0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

MinecraftClient/McClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ private void StartClient(string user, string uuid, string sessionID, string serv
206206
{
207207
client = ProxyHandler.newTcpClient(host, port);
208208
client.ReceiveBufferSize = 1024 * 1024;
209+
client.ReceiveTimeout = 30000; // 30 seconds
209210
handler = Protocol.ProtocolHandler.GetProtocolHandler(client, protocolversion, forgeInfo, this);
210211
Translations.WriteLine("mcc.version_supported");
211212

0 commit comments

Comments
 (0)