grpc-java/netty
Carl Mastrangelo 9c9ca659d4
netty,alts: fire initial protocol negotiation event in WBAEH
This change is needed after trying to use the new style protocol negotiators internally.  The problem is that some handlers fire the event in handlerAdded, which is too early.  The followup PNE is fired after handlerAdded, which breaks the composibility of the negotiators.

To fix this, this change modifies the negotiation flow.  Specifically:

* Negotiators should NEVER fire a negotiation from handlerAdded, instead they should wait until userEventTriggered
* Negotiators now do state checking on the PNE.  If it is set twice, it fails.  If it has not been received when doing the next stage of negotiation, it fails.
* WBAEH now fires the initial, default event.  This is the only handler that can fire it from handlerAdded

The tests updated are ones not using WBAEH (which they probably should).  This change ensures attributes aren't lost when doing negotiation.
2019-06-18 09:33:40 -07:00
..
shaded netty: change default transport to Epoll if available, otherwise using Nio (#5581) 2019-04-15 17:53:14 -07:00
src netty,alts: fire initial protocol negotiation event in WBAEH 2019-06-18 09:33:40 -07:00
BUILD.bazel Revert "Revert "core, netty: add io.perfmark Annotations" (#5853)" (#5884) 2019-06-14 14:09:05 -07:00
build.gradle netty: change default transport to Epoll if available, otherwise using Nio (#5581) 2019-04-15 17:53:14 -07:00