Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRPC port forwarding hangs when using mysql connection #2968

Open
balajiv113 opened this issue Dec 3, 2024 · 2 comments
Open

GRPC port forwarding hangs when using mysql connection #2968

balajiv113 opened this issue Dec 3, 2024 · 2 comments
Labels
area/portfwd bug Something isn't working

Comments

@balajiv113
Copy link
Member

Description

Steps to reproduce

  • Run limactl start --name=lima-vz --vm-type=vz --mount-type=virtiofs template://docker
  • Run docker run --detach --name mariadb -p 127.0.0.1:10099:3606 --env MARIADB_DATABASE=db --env MARIADB_ROOT_PASSWORD=root mariadb:latest --port 3606
  • Run mysql -uroot -proot --database=db --host=127.0.0.1 --port=10099 -e "SHOW TABLES;" from host and notice it hangs
  • Same running from guest works

Note: Identified this issue by running ddev tests

@balajiv113 balajiv113 added bug Something isn't working area/portfwd labels Dec 3, 2024
@nirs
Copy link
Member

nirs commented Dec 3, 2024

@balajiv113 can this be related to #2970?

@balajiv113
Copy link
Member Author

I don't think so, as its TCP connection in our case

What's happening with mysql is,
As soon connection is established,

  • Host accepts a TCP connection
  • Starts a tunnel
  • Sends empty data via tunnel (Implemented now, to start tunnel on guest as well)
  • Once tunnel msg is received on guest, it does a dial
  • Start io.copy in guest. For some reason this immediately fails with no error but just says 0 read and error is nil

I have done a change to support retry in these cases
master...balajiv113:lima:grpc-hangs

This works but need to see why it's failing in first place

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/portfwd bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants