By error code, do you mean 
https://github.com/grpc/grpc/blob/master/src/core/lib/iomgr/error.h#L125?

If you want to run each unit test on the same port, shouldn't you set 
GRPC_ARG_ALLOW_REUSEPORT to 1?

I suggest opening a reproducible issue on 
https://github.com/grpc/grpc/issues.

On Tuesday, May 28, 2019 at 8:36:18 AM UTC-7, Antoine Pitrou wrote:
>
>
> Hello, 
>
> When trying to run our gRPC unit tests on Windows, I frequently get 
> spurious errors of the kind: 
>
>   gRPC failed with error code 2 and message: Stream removed 
>
> Our tests are quite simple and do not feature a lot of traffic.  They 
> work flawlessly on Linux.  Our only specific settings are: 
>
> - GRPC_ARG_ALLOW_REUSEPORT set to 0 on the server 
> - GRPC_ARG_INITIAL_RECONNECT_BACKOFF_MS set to 100 on the client 
>
> Any idea what might cause this?  Each unit test spawns a fresh server 
> on the same TCP port and shuts it down at the end. 
>
> Regards 
>
> Antoine. 
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" 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/grpc-io/7f450000-33a4-451c-9f18-4960c3e224b4%40googlegroups.com.

Reply via email to