Increase default buffer size for wxWebRequest operations
Use 64KiB rather than 8KiB, as the latter seems rather small nowadays. Also add a symbolic constant for this number.
This commit is contained in:
@@ -194,7 +194,7 @@ wxWebRequestWinHTTP::HandleCallback(DWORD dwInternetStatus,
|
||||
|
||||
void wxWebRequestWinHTTP::WriteData()
|
||||
{
|
||||
int dataWriteSize = 8 * 1024;
|
||||
int dataWriteSize = wxWEBREQUEST_BUFFER_SIZE;
|
||||
if ( m_dataWritten + dataWriteSize > m_dataSize )
|
||||
dataWriteSize = m_dataSize - m_dataWritten;
|
||||
if ( !dataWriteSize )
|
||||
|
Reference in New Issue
Block a user