Object is too large to process

Discussions related to HTTPAPI (An HTTP Client Package for RPG programming.) http://www.scottklement.com/httpapi/
msddcb
Posts: 31
Joined: Wed Jul 28, 2021 5:12 am

Re: Object is too large to process

Post by msddcb »

I am having issues sending a large file and it was suggested to increase the size being sent on each call to sendraw2. sendraw2 is a copy of sendraw modified for files > 2GB

sendraw has wwBuf set to 8192 - I was looking to change this to 32768 to see if the larger size would make any difference.

Below is a portion of the debug log showing the current send size.
> 2025-01-15-14.40.00.875000: sendraw2(): comm_blockWrite returned 8192
> 2025-01-15-14.40.00.875000: sendraw2(): data sent=481984512, chunk
> size=8192, calling Callback to get data...
> 2025-01-15-14.40.00.875000: sendraw2(): data sent=481984512, chunk
> len=8192, timeout=60, calling comm_BlockWrite...
> 2025-01-15-14.40.00.875000: CommSSL_BlockWrite(): gsk_secure_soc_write
> socket fd=3, flags=00000084, blocking=0
> 2025-01-15-14.40.00.875000: CommSSL_BlockWrite(): gsk_secure_soc_write
> rc=0, len=8192
...
> 2025-01-15-14.40.00.875000: sendraw2(): comm_blockWrite returned 8192
> 2025-01-15-14.40.00.875000: sendraw2(): data sent=481992704, chunk
> size=8192, calling Callback to get data...
> 2025-01-15-14.40.00.875000: sendraw2(): data sent=481992704, chunk
> len=8192, timeout=60, calling comm_BlockWrite...
> 2025-01-15-14.40.00.875000: CommSSL_BlockWrite(): gsk_secure_soc_write
> socket fd=3, flags=00000084, blocking=0
> 2025-01-15-14.40.00.876000: CommSSL_BlockWrite(): gsk_secure_soc_write
> rc=406, len=0
This part of the log shows the error where the connection is ended.
> 2025-01-15-14.40.00.875000: sendraw2(): comm_blockWrite returned 8192
> 2025-01-15-14.40.00.875000: sendraw2(): data sent=481992704, chunk
> size=8192, calling Callback to get data...
> 2025-01-15-14.40.00.875000: sendraw2(): data sent=481992704, chunk
> len=8192, timeout=60, calling comm_BlockWrite...
> 2025-01-15-14.40.00.875000: CommSSL_BlockWrite(): gsk_secure_soc_write
> socket fd=3, flags=00000084, blocking=0
> 2025-01-15-14.40.00.876000: CommSSL_BlockWrite(): gsk_secure_soc_write
> rc=406, len=0
> 2025-01-15-14.40.00.876000: (GSKit) I/O: Broken pipe.
> 2025-01-15-14.40.00.876000: ssl_error(406): (GSKit) I/O: Broken pipe.
> 2025-01-15-14.40.00.876000: SetError() #55: CommSSL_BlockWrite: send:
> (GSKit) I/O: Broken pipe.
> 2025-01-15-14.40.00.876000: sendraw2(): comm_blockWrite returned -1
> 2025-01-15-14.40.00.876000: http_close(): entered ************End of
> Data********************
Post Reply