A repository demonstating an issue with grpclib interacting with tonic using IPv6.
- Clone this repository
cd grpclib-bug
- Install
rustup
(sudo apt install rustup
) cd helloworld-tonic
cargo run --bin helloworld-server &
cd ../client
python -m venv venv
. venv/bin/activate
python -m pip install "betterproto[compiler]==2.0.0b6" grpcio-tools grpcio protobuf
python grpclib_client.py
- Running
python grpcio_client.py
works. - Running using IPv4 (listenting and connecting to 127.0.0.1) works.
python -m grpc_tools.protoc -I .. --python_out=. --grpc_python_out=. ../helloworld.proto
`python -m pip install "betterproto[compiler]==2.0.0b6" grpcio-tools grpcio protobuf
Network captures with working and failing cases are avaiable in the cap/
directory.