Quantcast
Channel: Network Infrastructure Servers forum
Viewing all articles
Browse latest Browse all 5877

Error during upload of files greater > 5GB to IIS using Transfer Chunked Encoding implementation

$
0
0


Hello,

We have adapted Transfer-Chunked encoding implementation to support upload of file >2GB to a Content server which is built as an ISAPI extension. It is C++ code.

 

We are able to upload files greater then 2gb with Transfer-Chunked encoding implemntation.

 

However when i try to upload a 5.61 GB file only 1.61GB is getting saved and an error is thrown from ReadClient with return code 10054(an existing connection was forcibly closed by the remote host).

Each time we read 60000 bytes via ReadClient. Files upto 4GB could be succesfully uploaded via client which is adapted to Transfer-Chunked encoding. However for files >5GB the read client stops at 1.61 gb itself.

 Below is the snippet of the code where the error is thrown

     if(pECB->ReadClient(pECB->ConnID,buf,&l) ==false)

            {

                  rc = INTERNAL_ERROR;

                  DWORD dw = GetLastError();

                 goto exit;

            }

Unix apache open source does not have this issue as it accepts Content-Length header > 4gb as well with no issues. However since IIS has a 4GB Content-Length limitation we have to adapt to Transfer-Chunked:Encoding and this is resulting in an issue. 

As IIS ever been tested with files > 5gb?

Any help would be really appreciated.

Reagrds,

Sneha


Viewing all articles
Browse latest Browse all 5877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>