cloud-sql-proxy icon indicating copy to clipboard operation
cloud-sql-proxy copied to clipboard

Include note about socket length when Unix socket fails to bind

Open enocom opened this issue 4 years ago • 1 comments

This is a follow-on to https://github.com/GoogleCloudPlatform/cloudsql-proxy/issues/747 and a slight alternative to https://github.com/GoogleCloudPlatform/cloudsql-proxy/pull/960. When a Unix socket returns bind: invalid argument, we should include a note in the error message to check maximum socket length as a possible cause.

enocom avatar Oct 06 '21 20:10 enocom

Strict double-checking around the length must be enforced. Follows the official Linux code reference and the reason why can't be more than 108 chars. https://github.com/torvalds/linux/blob/master/net/unix/af_unix.c#L291-L302

m4r1k avatar Sep 01 '22 14:09 m4r1k