mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-05-20 08:26:59 -04:00
Fixed an error in the netcode that would cause the client to d/c on partial packets. Set buffer size to 0xFFFF due to disconnect on really large packets (ie gm packet). Implemented support ticket packets.
This commit is contained in:
@@ -19,12 +19,13 @@ namespace FFXIVClassic_Lobby_Server
|
||||
//Connection stuff
|
||||
public Blowfish blowfish;
|
||||
public Socket socket;
|
||||
public byte[] buffer = new byte[0xfffff];
|
||||
public byte[] buffer;
|
||||
private BlockingCollection<BasePacket> sendPacketQueue = new BlockingCollection<BasePacket>(1000);
|
||||
public int lastPartialSize = 0;
|
||||
|
||||
//Instance Stuff
|
||||
public uint owner = 0;
|
||||
public uint connType = 0;
|
||||
public int connType = 0;
|
||||
|
||||
public void queuePacket(BasePacket packet)
|
||||
{
|
||||
@@ -46,7 +47,7 @@ namespace FFXIVClassic_Lobby_Server
|
||||
BasePacket packet = sendPacketQueue.Take();
|
||||
|
||||
byte[] packetBytes = packet.getPacketBytes();
|
||||
byte[] buffer = new byte[0xfffff];
|
||||
byte[] buffer = new byte[0xFFFF];
|
||||
Array.Copy(packetBytes, buffer, packetBytes.Length);
|
||||
try
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user