Hi Gophers,
I struck this problem on the weekend when my multi-platform solution (
github.com/Bwooce/conchk ) didn't work on Windows. It had to wait until today when I had access to a Windows box.
I've boiled it down to the LocalAddr binding not working correctly, but it apparently works 100% on Mac&Linux. I suspect a difference in stack behaviour.
Representative example code that fails on Windows (XP):
http://play.golang.org/p/ik8aLj-vk_The address resolution works, but the Dial failed with "An invalid argument was supplied". Commenting out the LocalAddr resolution e.g. not specifying one, makes it work but doesn't achieve the goal.
Am I doing something wrong, or is there some hither-to-undiscovered weirdness about this on Windows?
Thanks,
Bruce