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

Emmanuel Lécharny commented on DIRMINA-1129:
--------------------------------------------

When a accept is done, we may need to set the RCVBUF size before the socket is 
connected:

 

"However, if a receive window larger than 64K is required then this must be 
requested *before* the socket is connected to the remote peer." 
(**[https://docs.oracle.com/javase/8/docs/api/java/net/Socket.html#setReceiveBufferSize-int-).]
 This is what we do here.

> Unable to decrease socket receive buffer size below 65535 for NIO socket 
> connector.
> -----------------------------------------------------------------------------------
>
>                 Key: DIRMINA-1129
>                 URL: https://issues.apache.org/jira/browse/DIRMINA-1129
>             Project: MINA
>          Issue Type: Bug
>          Components: Transport
>    Affects Versions: 2.0.22, 2.1.4
>            Reporter: Marcin L
>            Assignee: Jonathan Valliere
>            Priority: Minor
>
> NioSocketConnector sets only SO_RCVBUF when configured receive buffer size is 
> above 65535. Under some circumstances it might be desirable to set it to 
> lower value.
> Can the check be replaced with the similar one to NioSocketAcceptor?



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