[sctp-dev] SCTP in blocking mode

Amir Eliaz amir.eliaz at traffixsystems.com
Thu Mar 1 04:54:16 PST 2012


Thanks Alan.

Yes, we are aware of this. We thought there is a way to have Sctp use oio sockets in blocking mode.

But it looks impossible since the whole API is based on nio and we couldn’t find any oio sctp implementation.

That led me to wonder why the project's Javadoc mentions non-blocking mode in several APIs.

--Amir

 

From: Alan Bateman [mailto:Alan.Bateman at oracle.com] 
Sent: Thursday, March 01, 2012 12:27 PM
To: Amir Eliaz
Cc: sctp-dev at openjdk.java.net
Subject: Re: [sctp-dev] SCTP in blocking mode

 

On 01/03/2012 10:23, Amir Eliaz wrote: 

Hello,

   We are trying to have Sctp perform in blocking mode. 

>From the Javadoc we understand it's supported, but we're unable to make it work as we keep getting IllegalBlockingModeExceptions.

Using configureBlocking(true) will cause register() to fail, so we tried to surround the calls to send() with configureBlocking(true/false).

This also caused the exception immediately. 

Any help will be appreciated.

Thanks,

--Amir

You can't use channels configured blocking with Selectors.

-Alan.


-- 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/sctp-dev/attachments/20120301/89e4c67b/attachment.html 


More information about the sctp-dev mailing list