[ 
https://issues.apache.org/jira/browse/SSHD-1080?focusedWorklogId=485790&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-485790
 ]

ASF GitHub Bot logged work on SSHD-1080:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 17/Sep/20 15:05
            Start Date: 17/Sep/20 15:05
    Worklog Time Spent: 10m 
      Work Description: lgoldstein commented on a change in pull request #169:
URL: https://github.com/apache/mina-sshd/pull/169#discussion_r490326176



##########
File path: sshd-common/src/main/java/org/apache/sshd/common/io/IoSession.java
##########
@@ -82,6 +84,27 @@
      */
     Object removeAttribute(Object key);
 
+    /**
+     * Write a packet on the socket. Multiple writes can be issued 
concurrently and will be queued.
+     *
+     * @param  buffer      the buffer send. <B>NOTE:</B> the buffer must not 
be touched until the returned write future
+     *                     is completed.
+     * @return             An {@code IoWriteFuture} that can be used to check 
when the packet has actually been sent
+     * @throws IOException if an error occurred when sending the packet
+     */
+    IoWriteFuture writePacket(Buffer buffer) throws IOException;
+
+    /**
+     * Closes this session immediately or after all queued write requests are 
flushed. This operation is asynchronous.
+     * Wait for the returned {@link CloseFuture} if you want to wait for the 
session actually closed.
+     *
+     * @param  immediately {@code true} to close this session immediately. The 
pending write requests will simply be
+     *                     discarded. {@code false} to close this session 
after all queued write requests are flushed.
+     * @return             The generated {@link CloseFuture}
+     */
+    @Override
+    CloseFuture close(boolean immediately);
+

Review comment:
       Good enough...




----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 485790)
    Time Spent: 1h 10m  (was: 1h)

> Revisit the PacketWriter interface
> ----------------------------------
>
>                 Key: SSHD-1080
>                 URL: https://issues.apache.org/jira/browse/SSHD-1080
>             Project: MINA SSHD
>          Issue Type: Improvement
>            Reporter: Guillaume Nodet
>            Priority: Major
>          Time Spent: 1h 10m
>  Remaining Estimate: 0h
>
> The expectations when using {{Session.writePacket}}, {{Channel.writePacket}} 
> and {{IoOutputStream.writePacket}} are different, so I don't think it's a 
> good idea to use a single interface for those.
> The only real place where it's used is in the {{ThrottlingPacketWriter}} 
> which would need to be reworked.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to