I tried both the reference implementation from the book Automate Your Home Using Go and your example/http-server code.
It works until the first request appears.
(Sometimes !dhcpclient.IsDone() although the DHCP server assigned that IP, but yeah, I can somewhat fix that setting the same RequestedIP in config)
After that happened all TCP requests time out or fail as the particular IP address is no longer reachable.
No more logs are spawned, it seems dead.
With curl sometimes I can get up to three requests through and then it stops. But with Firefox Developer Edition it stops directly at the first approach.
I know that TCP/IP is kinda fragile and things like that might happen.
Yet I'd expect that system to somehow discard these errors gracefully and keep on receiving.
If you do have any idea on what makes this happen and how to cope with it, I'd happily fork and fiddle around.
Could you upload wireshark captures of this bug in action? With a wireshark capture of packets it should be relatively easy to write a test for this bug.
I tried both the reference implementation from the book Automate Your Home Using Go and your
example/http-server
code.It works until the first request appears. (Sometimes
!dhcpclient.IsDone()
although the DHCP server assigned that IP, but yeah, I can somewhat fix that setting the sameRequestedIP
in config)After that happened all TCP requests time out or fail as the particular IP address is no longer reachable. No more logs are spawned, it seems dead.
With
curl
sometimes I can get up to three requests through and then it stops. But with Firefox Developer Edition it stops directly at the first approach.I know that TCP/IP is kinda fragile and things like that might happen. Yet I'd expect that system to somehow discard these errors gracefully and keep on receiving.
If you do have any idea on what makes this happen and how to cope with it, I'd happily fork and fiddle around.