Its not possible… if you run out of ports the OS will signal an error and so 
you will get an exception.

> On 17 Jan 2017, at 03:16, [email protected] wrote:
> 
> I am wondering if it is possible to have two different ChannelPipeline, 
> getting bootstrapped with the same local port?
> 
> 
> 
> The way I set up my pipeline is through 
> ClientBootstrap.connect(remoteAddress). I didn't provide a local port. In 
> this case, I think the OS will manage the local port assignment for me. Is it 
> possible that if I run out of available port or for some other reason, I end 
> up getting two pipelines or two channels listening to the same local port?
> 
> 
> 
> If thats possible, and if that local port receives a message, which pipeline 
> will receive & handle that message? Or both pipeline will get notified and 
> handle it?
> 
> 
> 
> Thanks! 
> 
> Erben
> 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Netty discussions" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/netty/93276b73-1e63-4859-bae0-77fee3b7368c%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/netty/93276b73-1e63-4859-bae0-77fee3b7368c%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout 
> <https://groups.google.com/d/optout>.

-- 
You received this message because you are subscribed to the Google Groups 
"Netty discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/netty/D6820AE3-EF74-489B-A22E-B3FDB9BB9193%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to