Issue with File Upload Size on SFTP Server-

Advertisement

deepanrajpounraj@gmail.com
Joined:
Posts:
1

Issue with File Upload Size on SFTP Server-

Hi everyone,

I’m encountering an issue when uploading files to my SFTP server using WinSCP. The application sends a length of only 970 bytes, whereas my SFTP server has a buffer size of 32,768 bytes.

I attempted to resolve this by disabling the "Optimize connection buffer size" option, but unfortunately, that didn't help.

Could someone please advise on how I can configure WinSCP to write around 32,768 bytes to the SFTP server?

Here are the details of my setup:

WinSCP Version: 6.3.5 (Build 14991, released on 2024-09-10)
GUI Version: WinSCP
Operating System: Windows 10 Pro
Note: In the log, it states:
2024-10-21 17:33:03.490 Write request offset: 0, len: 960
I would like this length to be increased to around 32,768.

Below is the relevant section of the WinSCP debug log:
2024-10-21 17:33:03.436 Opening remote file.
2024-10-21 17:33:03.436 Type: SSH_FXP_OPEN, Size: 39, Number: 40195
...
2024-10-21 17:33:03.490 Write request offset: 0, len: 960
...
Thank you for your assistance!

Reply with quote

Advertisement

Guest

Issue with File Upload Size on SFTP Server-

Thanks for the response.

I'm experiencing a speed issue with WinSCP when connecting to our Mocana SFTP server.
Upon reviewing the WinSCP log, I noticed that the client only sends 960 bytes to the SFTP server. In contrast, when connecting to other SFTP servers, the WinSCP client sends 32,768 bytes. How can I adjust the WinSCP SFTP client to send 32k bytes instead of 960 bytes when connecting to the Mocana SFTP server?

In the log, it shows "Write request offset: 0, len: 960." We need to adjust the len to around 32k. How can we configure the WinSCP client to send this increased length?

Please see the log below.
2024-10-28 11:07:56.945 Timeout waiting for network events
. 2024-10-28 11:07:57.445 Session upkeep
. 2024-10-28 11:07:57.445 Looking for network events
. 2024-10-28 11:07:57.445 Timeout waiting for network events
. 2024-10-28 11:07:57.945 Session upkeep
. 2024-10-28 11:07:57.945 Looking for network events
. 2024-10-28 11:07:57.945 Timeout waiting for network events
. 2024-10-28 11:07:58.445 Session upkeep
. 2024-10-28 11:07:58.445 Looking for network events
. 2024-10-28 11:07:58.445 Timeout waiting for network events
. 2024-10-28 11:07:58.944 Session upkeep
. 2024-10-28 11:07:58.944 Looking for network events
. 2024-10-28 11:07:58.944 Timeout waiting for network events
. 2024-10-28 11:07:59.445 Session upkeep
. 2024-10-28 11:07:59.445 Looking for network events
. 2024-10-28 11:07:59.445 Timeout waiting for network events
. 2024-10-28 11:07:59.617 Size of 1 local files/folders calculated as 30539183
. 2024-10-28 11:07:59.648 Copying 1 files/directories to remote directory "/" - total size: 30,539,183
. 2024-10-28 11:07:59.648   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: N (102400); CalcS: Yes; Mask: *.*
. 2024-10-28 11:07:59.648   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2024-10-28 11:07:59.648   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2024-10-28 11:07:59.664 File: 'H:\sw-pack-2.bin' [2024-10-27T20:23:30.038Z] [30539183]
. 2024-10-28 11:07:59.664 Copying "H:\sw-pack-2.bin" to remote directory started.
. 2024-10-28 11:07:59.664 Binary transfer mode selected.
. 2024-10-28 11:07:59.664 Opening remote file.
> 2024-10-28 11:07:59.664 Type: SSH_FXP_OPEN, Size: 39, Number: 5379
> 2024-10-28 11:07:59.664 03,00,00,15,03,00,00,00,0E,2F,73,77,2D,70,61,63,6B,2D,32,2E,62,69,6E,00,00,
> 2024-10-28 11:07:59.664 00,3A,00,00,00,01,00,00,00,00,01,D1,FD,AF,
. 2024-10-28 11:07:59.664 Sent 43 bytes
. 2024-10-28 11:07:59.664 There are 0 bytes remaining in the send buffer
. 2024-10-28 11:07:59.664 Looking for network events
. 2024-10-28 11:07:59.664 Timeout waiting for network events
. 2024-10-28 11:07:59.664 Read 4 bytes (54 pending)
. 2024-10-28 11:07:59.664 Read 54 bytes (0 pending)
< 2024-10-28 11:07:59.664 Type: SSH_FXP_STATUS, Size: 54, Number: 5124
< 2024-10-28 11:07:59.664 65,00,00,14,04,00,00,00,00,00,00,00,23,00,00,00,1F,53,53,48,20,53,46,54,50,
< 2024-10-28 11:07:59.664 2F,53,43,50,20,72,65,71,75,65,73,74,20,73,75,63,63,65,65,64,65,64,2E,00,00,
< 2024-10-28 11:07:59.664 00,02,65,6E,
. 2024-10-28 11:07:59.664 Discarding reserved response
. 2024-10-28 11:07:59.664 Waiting for another 4 bytes
. 2024-10-28 11:07:59.664 Looking for incoming data
. 2024-10-28 11:07:59.664 Looking for network events
. 2024-10-28 11:07:59.710 Detected network event
. 2024-10-28 11:07:59.710 Enumerating network events for socket 1904
. 2024-10-28 11:07:59.710 Enumerated 1 network events making 1 cumulative events for socket 1904
. 2024-10-28 11:07:59.710 Handling network read event on socket 1904 with error 0
. 2024-10-28 11:07:59.710 Waiting for another 4 bytes
. 2024-10-28 11:07:59.710 Looking for incoming data
. 2024-10-28 11:07:59.710 Looking for network events
. 2024-10-28 11:07:59.710 Received 14 bytes
. 2024-10-28 11:07:59.710 Timeout waiting for network events
. 2024-10-28 11:07:59.710 Read 4 bytes (10 pending)
. 2024-10-28 11:07:59.710 Read 10 bytes (0 pending)
< 2024-10-28 11:07:59.710 Type: SSH_FXP_HANDLE, Size: 10, Number: 5379
< 2024-10-28 11:07:59.710 66,00,00,15,03,00,00,00,01,32,
. 2024-10-28 11:07:59.710 Write request offset: 0, len: 960
. 2024-10-28 11:07:59.710 Queue len: 1
> 2024-10-28 11:07:59.710 Type: SSH_FXP_WRITE, Size: 982, Number: 5894
> 2024-10-28 11:07:59.710 06,00,00,17,06,00,00,00,01,32,00,00,00,00,00,00,00,00,00,00,03,C0,00,01,00,
> 2024-10-28 11:07:59.710 03,00,00,00,01,00,00,00,F0,73,77,2D,70,61,63,6B,00,00,00,00,00,00,00,00,00,
> 2024-10-28 11:07:59.710 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,65,
> 2024-10-28 11:07:59.710 74,78,20,73,77,20,70,61,63,6B,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
> 2024-10-28 11:07:59.710 00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,D1,FD,AF,1A,09,07,E8,0E,14,00,
> 2024-10-28 11:07:59.710 00,65,74,78,61,5F,36,2E,37,2E,31,28,30,2E,31,36,34,29,00,00,00,00,00,00,00,
> 2024-10-28 11:07:59.710 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,45,54,58,41,2D,32,69,00,00,
> 2024-10-28 11:07:59.710 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
> 2024-10-28 11:07:59.710 00,00,00,00,00,00,00,00,00,00,00,06,00,07,00,01,28,30,00,00,00,00,00,00,00,
> 2024-10-28 11:07:59.710 03,2E,31,36,34,29,53,52,00,00,00,00,00,24,77,79,CA,00,00,00,00,00,00,00,00,
> 2024-10-28 11:07:59.710 00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,03,00,00,00,00,00,00,00,F0,6D,
> 2024-10-28 11:07:59.710 61,69,6E,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,
> 2024-10-28 11:07:59.710 00,00,00,00,00,00,00,00,00,00,00,00,00,00,65,74,78,20,6D,61,69,6E,20,61,70,
> 2024-10-28 11:07:59.710 70,6C,69,63,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,

Reply with quote

Advertisement

You can post new topics in this forum