You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@norman, I will do it with in few days :), I would like to add OioSctp Transport and currently I am kind of stuck with following issue in io.netty.channel.socket.oio.OioEventLoop,
The problem is, I have a OioSctpEchoServer running and I can connect and send messages from a Nio/Oio Sctp Client, but when I stop the client and start again, connection is established and closed immediately with following exception
Sep 10, 2012 6:23:22 PM io.netty.handler.logging.LoggingHandler
INFO: [id: 0xbd0b90d2, /127.0.0.1:42775 => /127.0.0.1:2556] REGISTERED
Sep 10, 2012 6:23:22 PM io.netty.handler.logging.LoggingHandler
INFO: [id: 0xbd0b90d2, /127.0.0.1:42775 => /127.0.0.1:2556] ACTIVE
Sep 10, 2012 6:23:22 PM io.netty.handler.logging.LoggingHandler
INFO: [id: 0xbd0b90d2, /127.0.0.1:42775 :> /127.0.0.1:2556] EXCEPTION: java.nio.channels.ClosedByInterruptException
java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:772)
at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:730)
at io.netty.channel.socket.oio.OioSctpChannel.doReadMessages(OioSctpChannel.java:115)
at io.netty.channel.socket.oio.AbstractOioMessageChannel$OioMessageUnsafe.read(AbstractOioMessageChannel.java:45)
at io.netty.channel.socket.oio.OioEventLoop.run(OioEventLoop.java:81)
at io.netty.channel.SingleThreadEventExecutor$1.run(SingleThreadEventExecutor.java:80)
at java.lang.Thread.run(Thread.java:722)
the reason for above issue is OioEventLoop thread is interrupted while it was blocking on sun.nio.ch.SctpChannelImpl.receive().
I have noticed that, OioEventLoop wakeup() method is directly interrupting the thread which is not like other EventLoop. So I tried after modifying wakeup method, problem was solved.
Activity
jestan commentedon Sep 4, 2012
Hi All,
I have ported the basic SCTP Transport without any issue (#584),
now I have following things, need to be clarified.
Previously SCTP multi homing was implemented inside the SctpWorker. Now the event model has changed and we are re using the NioEventLoop, I am not quite sure that, where I can implement the multi homing operations (bindAddress(), unbindAddress() see http://git.io/GKUzuQ) in a SctpChannel.
Where we can put SCTP testsuite code?
Can we create a separate test module for SCTP or port it to existing testsuite module?
normanmaurer commentedon Sep 7, 2012
@jestan I guess in the Unsafe implementation you could add your multi homing operations. Does this sound ok ?
Support unbindAddress and bindAddress for SCTP. See #560
jestan commentedon Sep 9, 2012
@norman it's great , thank you :-)
normanmaurer commentedon Sep 9, 2012
@jestan Could you isse a pull request to merge the transport tests in?
jestan commentedon Sep 10, 2012
@norman, I will do it with in few days :), I would like to add OioSctp Transport and currently I am kind of stuck with following issue in io.netty.channel.socket.oio.OioEventLoop,
The problem is, I have a OioSctpEchoServer running and I can connect and send messages from a Nio/Oio Sctp Client, but when I stop the client and start again, connection is established and closed immediately with following exception
Sep 10, 2012 6:23:22 PM io.netty.handler.logging.LoggingHandler
INFO: [id: 0xbd0b90d2, /127.0.0.1:42775 => /127.0.0.1:2556] REGISTERED
Sep 10, 2012 6:23:22 PM io.netty.handler.logging.LoggingHandler
INFO: [id: 0xbd0b90d2, /127.0.0.1:42775 => /127.0.0.1:2556] ACTIVE
Sep 10, 2012 6:23:22 PM io.netty.handler.logging.LoggingHandler
INFO: [id: 0xbd0b90d2, /127.0.0.1:42775 :> /127.0.0.1:2556] EXCEPTION: java.nio.channels.ClosedByInterruptException
java.nio.channels.ClosedByInterruptException
at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:772)
at sun.nio.ch.SctpChannelImpl.receive(SctpChannelImpl.java:730)
at io.netty.channel.socket.oio.OioSctpChannel.doReadMessages(OioSctpChannel.java:115)
at io.netty.channel.socket.oio.AbstractOioMessageChannel$OioMessageUnsafe.read(AbstractOioMessageChannel.java:45)
at io.netty.channel.socket.oio.OioEventLoop.run(OioEventLoop.java:81)
at io.netty.channel.SingleThreadEventExecutor$1.run(SingleThreadEventExecutor.java:80)
at java.lang.Thread.run(Thread.java:722)
the reason for above issue is OioEventLoop thread is interrupted while it was blocking on sun.nio.ch.SctpChannelImpl.receive().
I have noticed that, OioEventLoop wakeup() method is directly interrupting the thread which is not like other EventLoop. So I tried after modifying wakeup method, problem was solved.
this happens because current OioEventLoop is not compatible with blocking SctpChannel? or am I missing something here?
normanmaurer commentedon Sep 10, 2012
@jestan interesting.. what are the side-effects for the other OIO stuff with your changes ?
normanmaurer commentedon Sep 13, 2012
@jestan @trustin I close this as it was ported.. for the OIO we should open another issue
Upgrade to latest quiche commit (netty#560)