MJL 19/3/07 Effectively disabled HTTP chunk transfer code (see MAX_HTTP_TRANSFER_BYTES), was causing problems where start and end were not specified.
r1671 | mle | 2007-03-19 17:02:17 +1100 (Mon, 19 Mar 2007) | 2 lines
This commit is contained in:
committed by
Douglas Clowes
parent
f15aed00ab
commit
c28223584b
@@ -665,8 +665,13 @@ static int AnstoHttpGetHistogram(pHistDriver self, SConnection *pCon,
|
|||||||
// MJL 22/11/06: Turned HTTP 1.1 chunking off at the histogram server, so we no longer
|
// MJL 22/11/06: Turned HTTP 1.1 chunking off at the histogram server, so we no longer
|
||||||
// need a size restriction. Leave the code in just in case it's needed for other reasons,
|
// need a size restriction. Leave the code in just in case it's needed for other reasons,
|
||||||
// but set a larger maximum request size.
|
// but set a larger maximum request size.
|
||||||
|
// MJL 19/3/07 Because some clients now perform requests without valid start and end parameters,
|
||||||
|
// the code below won't work properly in some cases. As a temporary fix, effectively disable it
|
||||||
|
// by setting MAX_HTTP_REQUEST_BYTES to a very large value (4GB = 1Gint).
|
||||||
|
// 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)
|
||||||
// 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