[ 
https://issues.apache.org/jira/browse/SSHD-1207?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17394914#comment-17394914
 ] 

Susmit Sarkar edited comment on SSHD-1207 at 8/6/21, 5:10 PM:
--------------------------------------------------------------

[~lgoldstein]: 

 

I tried out this piece of the snippet:

 
{code:java}
// code placeholder
sshdServer.addSessionListener(new SessionListener() {
    sshdServer.addSessionListener(new SessionListener() { 
        @Override public void sessionPeerIdentificationReceived(Session 
session, String version, List<String> extraLines) {      
CoreModuleProperties.ASYNC_SERVER_STDOUT_CHUNK_BELOW_WINDOW_SIZE.set(session, 
true); 
CoreModuleProperties.ASYNC_SERVER_STDERR_CHUNK_BELOW_WINDOW_SIZE.set(session, 
true); } });
{code}
 

Is it the correct way of enabling in 2.7.0 as the issue still persists

 


was (Author: susmit07):
[~lgoldstein]: 

 

I tried out this piece of the snippet:

 
{code:java}
// code placeholder
sshdServer.addSessionListener(new SessionListener() {
    sshdServer.addSessionListener(new SessionListener() { 
        @Override public void sessionPeerIdentificationReceived(Session 
session, String version, List<String> extraLines) {      
CoreModuleProperties.ASYNC_SERVER_STDOUT_CHUNK_BELOW_WINDOW_SIZE.set(session, 
true); 
CoreModuleProperties.ASYNC_SERVER_STDERR_CHUNK_BELOW_WINDOW_SIZE.set(session, 
true); } });
{code}
 

 

 

> Large file get using WinSCP with Apache SFTP Server is not working
> ------------------------------------------------------------------
>
>                 Key: SSHD-1207
>                 URL: https://issues.apache.org/jira/browse/SSHD-1207
>             Project: MINA SSHD
>          Issue Type: Bug
>            Reporter: Sreedhar J
>            Priority: Major
>         Attachments: largefile_issue.png, sshdnativelogs.log
>
>
> We have been using Apache SSHD version 2.5.1 for SFTP Server functionaity and 
> it was working very well with all the sftp clients.   Recently we have 
> upgraded  2.7.0   and facing issues with largefile downloads using WinSCP.  
> Entire file is not getting downloaded. Some time with out downloading the 
> entire file WinSCP is showing the transfer as complete.   In the Apache SSHD 
> logs, I see many EOF status messages to the client.  Not sure  why so many 
> EOF messages are exchanged between the client and Server.
> 04 Aug 2021 21:38:10,841 [sshd-SftpSubsystem-46473-thread-1] DEBUG 
> Nio2Session  - writeBuffer(Nio2Session[local=/10.15.102.66:59119, 
> remote=10.84.42.167/10.84.42.167:59334]) writing 16448 bytes
> 04 Aug 2021 21:38:10,842 [sshd-SftpSubsystem-46473-thread-1] DEBUG 
> SftpSubsystem  - 
> process(ServerSessionImpl[testuser1@10.84.42.167/10.84.42.167:59334])[length=53,
>  type=SSH_FXP_READ, id=4884997] processing
> 04 Aug 2021 21:38:10,842 [sshd-SshServer[6ad1bbb8](port=59119)-nio2-thread-1] 
> DEBUG ServerSessionImpl  - 
> encode(ServerSessionImpl[testuser1@10.84.42.167/10.84.42.167:59334]) packet 
> #149 sending command=94[SSH_MSG_CHANNEL_DATA] len=10734
> 04 Aug 2021 21:38:10,842 [sshd-SftpSubsystem-46473-thread-1] DEBUG 
> SftpSubsystem  - 
> doSendStatus(ServerSessionImpl[testuser1@10.84.42.167/10.84.42.167:59334])[id=4884997]
>  SSH_FXP_STATUS (substatus=SSH_FX_EOF, lang=, msg=End of file)
> 04 Aug 2021 21:38:10,842 [sshd-SftpSubsystem-46473-thread-1] DEBUG 
> SftpSubsystem  - 
> process(ServerSessionImpl[testuser1@10.84.42.167/10.84.42.167:59334])[length=53,
>  type=SSH_FXP_READ, id=4885253] processing
> 04 Aug 2021 21:38:10,842 [sshd-SftpSubsystem-46473-thread-1] DEBUG 
> SftpSubsystem  - 
> doSendStatus(ServerSessionImpl[testuser1@10.84.42.167/10.84.42.167:59334])[id=4885253]
>  SSH_FXP_STATUS (substatus=SSH_FX_EOF, lang=, msg=End of file)
> 04 Aug 2021 21:38:10,843 [sshd-SshServer[6ad1bbb8](port=59119)-nio2-thread-1] 
> DEBUG Nio2Session  - writeBuffer(Nio2Session[local=/10.15.102.66:59119, 
> remote=10.84.42.167/10.84.42.167:59334]) writing 10800 bytes
> 04 Aug 2021 21:38:10,843 [sshd-SshServer[6ad1bbb8](port=59119)-nio2-thread-1] 
> DEBUG ServerSessionImpl  - 
> encode(ServerSessionImpl[testuser1@10.84.42.167/10.84.42.167:59334]) packet 
> #150 sending command=94[SSH_MSG_CHANNEL_DATA] len=41
> 04 Aug 2021 21:38:10,843 [sshd-SshServer[6ad1bbb8](port=59119)-nio2-thread-1] 
> DEBUG Nio2Session  - writeBuffer(Nio2Session[local=/10.15.102.66:59119, 
> remote=10.84.42.167/10.84.42.167:59334]) writing 96 bytes
> 04 Aug 2021 21:38:10,843 [sshd-SshServer[6ad1bbb8](port=59119)-nio2-thread-1] 
> DEBUG ServerSessionImpl  - 
> encode(ServerSessionImpl[testuser1@10.84.42.167/10.84.42.167:59334]) packet 
> #151 sending command=94[SSH_MSG_CHANNEL_DATA] len=41
> 04 Aug 2021 21:38:10,843 [sshd-SshServer[6ad1bbb8](port=59119)-nio2-thread-1] 
> DEBUG Nio2Session  - writeBuffer(Nio2Session[local=/10.15.102.66:59119, 
> remote=10.84.42.167/10.84.42.167:59334]) writing 96 bytes
> 04 Aug 2021 21:38:11,038 [sshd-SshServer[6ad1bbb8](port=59119)-nio2-thread-8] 
> DEBUG ChannelSession  - handleData(ChannelSession[id=0, 
> recipient=256]-ServerSessionImpl[testuser1@10.84.42.167/10.84.42.167:59334]) 
> SSH_MSG_CHANNEL_DATA len=57



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to