[AFD] Add default window sizes on socket creation

This commit is contained in:
Pierre Schweitzer 2019-02-25 22:25:03 +01:00
parent fa548efb41
commit bb9eec7537
No known key found for this signature in database
GPG key ID: 7545556C3D585B0B

View file

@ -22,6 +22,10 @@ DWORD DebugTraceLevel = MIN_TRACE;
#endif /* DBG */
/* FIXME: should depend on SystemSize */
ULONG AfdReceiveWindowSize = 0x2000;
ULONG AfdSendWindowSize = 0x2000;
void OskitDumpBuffer( PCHAR Data, UINT Len ) {
unsigned int i;
@ -352,6 +356,8 @@ AfdCreateSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
FCB->DeviceExt = DeviceExt;
FCB->AddressFile.Handle = INVALID_HANDLE_VALUE;
FCB->Connection.Handle = INVALID_HANDLE_VALUE;
FCB->Recv.Size = AfdReceiveWindowSize;
FCB->Send.Size = AfdSendWindowSize;
KeInitializeMutex( &FCB->Mutex, 0 );