You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by GitBox <gi...@apache.org> on 2022/12/22 08:56:20 UTC

[GitHub] [mina-sshd] jiang1308061292 commented on issue #300: The variable sender of channelOpenConfirmation is possibly negative

jiang1308061292 commented on issue #300:
URL: https://github.com/apache/mina-sshd/issues/300#issuecomment-1362576297

       public void channelOpenConfirmation(Buffer buffer) throws IOException {
           Channel channel = this.getChannel((byte)91, buffer);
           if (channel != null) {
               // int sender = buffer.getInt();
               long sender = buffer.getUInt();
               long rwsize = buffer.getUInt();
               long rmpsize = buffer.getUInt();
               if (this.log.isDebugEnabled()) {
                   this.log.debug("channelOpenConfirmation({}) SSH_MSG_CHANNEL_OPEN_CONFIRMATION sender={}, window-size={}, packet-size={}", new Object[]{channel, sender, rwsize, rmpsize});
               }
   
               channel.handleOpenSuccess((long)sender, rwsize, rmpsize, buffer);
           }
       }


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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