Skip to content

Error reading channel data (7) #2001

@SyuTingSong

Description

@SyuTingSong

A RuntimeException is thrown when downloading a file larger than 10GB. The error message is

Error reading channel data (7)

I enabled the logs and checked the packets before the exception was thrown.

<- NET_SSH2_MSG_CHANNEL_DATA (since last: 0.0002, network: 0s)
<- NET_SSH2_MSG_CHANNEL_DATA (since last: 0.0029, network: 0s)
<- NET_SSH2_MSG_KEXINIT (since last: 0.0027, network: 0s)
-> NET_SSH2_MSG_KEXINIT (since last: 0.0016, network: 0s)
-> NET_SSH2_MSG_KEXDH_INIT (since last: 0.0008, network: 0s)
<- NET_SSH2_MSG_KEXDH_REPLY (since last: 0.2534, network: 0.2534s)
-> NET_SSH2_MSG_NEWKEYS (since last: 0.0003, network: 0s)kkkk
<- NET_SSH2_MSG_NEWKEYS (since last: 0, network: 0s)
<- NET_SSH2_MSG_CHANNEL_DATA (since last: 0.2497, network: 0s)
<- NET_SSH2_MSG_EXT_INFO (since last: 0.0001, network: 0s)
-> NET_SSH2_MSG_DISCONNECT (since last: 0.0001, network: 0s)

According to RFC 8308, the SSH2_MSG_EXT_INFO may also be sent by the server after the re-keying process.
I am trying to initiate a PR to address this issue later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions