mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
[AFD] Add default window sizes on socket creation
This commit is contained in:
parent
fa548efb41
commit
bb9eec7537
1 changed files with 6 additions and 0 deletions
|
@ -22,6 +22,10 @@ DWORD DebugTraceLevel = MIN_TRACE;
|
||||||
|
|
||||||
#endif /* DBG */
|
#endif /* DBG */
|
||||||
|
|
||||||
|
/* FIXME: should depend on SystemSize */
|
||||||
|
ULONG AfdReceiveWindowSize = 0x2000;
|
||||||
|
ULONG AfdSendWindowSize = 0x2000;
|
||||||
|
|
||||||
void OskitDumpBuffer( PCHAR Data, UINT Len ) {
|
void OskitDumpBuffer( PCHAR Data, UINT Len ) {
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
|
|
||||||
|
@ -352,6 +356,8 @@ AfdCreateSocket(PDEVICE_OBJECT DeviceObject, PIRP Irp,
|
||||||
FCB->DeviceExt = DeviceExt;
|
FCB->DeviceExt = DeviceExt;
|
||||||
FCB->AddressFile.Handle = INVALID_HANDLE_VALUE;
|
FCB->AddressFile.Handle = INVALID_HANDLE_VALUE;
|
||||||
FCB->Connection.Handle = INVALID_HANDLE_VALUE;
|
FCB->Connection.Handle = INVALID_HANDLE_VALUE;
|
||||||
|
FCB->Recv.Size = AfdReceiveWindowSize;
|
||||||
|
FCB->Send.Size = AfdSendWindowSize;
|
||||||
|
|
||||||
KeInitializeMutex( &FCB->Mutex, 0 );
|
KeInitializeMutex( &FCB->Mutex, 0 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue