MJL 20/3/07 Didn't quite get MAX_HTTP_REQUEST_BYTES declaration right (needed long long type), fixed.
r1687 | mle | 2007-03-20 13:46:01 +1100 (Tue, 20 Mar 2007) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
69d58fbaca
commit
bc4813b4ba
@@ -671,7 +671,7 @@ static int AnstoHttpGetHistogram(pHistDriver self, SConnection *pCon,
|
|||||||
// Note, actual transfer of such large data sizes in one hit may fail, not recommended.
|
// Note, actual transfer of such large data sizes in one hit may fail, not recommended.
|
||||||
//#define MAX_HTTP_REQUEST_BYTES 131072
|
//#define MAX_HTTP_REQUEST_BYTES 131072
|
||||||
//#define MAX_HTTP_REQUEST_BYTES 1048576
|
//#define MAX_HTTP_REQUEST_BYTES 1048576
|
||||||
#define MAX_HTTP_REQUEST_BYTES (4096*1048576) // max transfer size 4GB (but your mileage may vary)
|
#define MAX_HTTP_REQUEST_BYTES (((long long)4096)*1048576) // max transfer size 4GB (but your mileage may vary)
|
||||||
// Do the HTTP data transfer in bite sized pieces
|
// Do the HTTP data transfer in bite sized pieces
|
||||||
while(end>start)
|
while(end>start)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user