grpc-java icon indicating copy to clipboard operation
grpc-java copied to clipboard

Bad transport may be used for starting stream.

Open madongfly opened this issue 11 years ago • 1 comments

Currently we reference activeTransport to the newly created transport before the new transport is started , so if the new transport failed starting with an exception, the subsequent stream still try to use the bad activeTransport.

madongfly avatar May 07 '15 23:05 madongfly

This is by design.

There are multiple, multiple races between channel and the transport that can't be solved in Channel because the Channel is creating streams on a different thread. Instead, the transport has to be coded to fail new streams after it has failed by throwing IllegalStateException.

ejona86 avatar May 08 '15 00:05 ejona86