mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 08:17:09 +08:00
[AFD] Add default window sizes on socket creation
This commit is contained in:
@@ -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 );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user