@Gordon, @Pat
After a big of slogging, I think I may have fixed Wiznet. (OK, a bit optimistic, but it looks more reliable now in my testing :)
I found three bugs
The HTTP code was using srcport and dstport both with the same value, which I think caused GETs to fail when they overlapped.
The DNS code wasn't releasing a socket, which caused "no free sockets" after 8 DNS queries.
The socket code wasn't clearing the nonblock status, which caused odd things to happen if a socket was reused.
I've submitted a pull request - hopefully Gordon can review and include these fixes in a future build - assuming I've not got anything wrong!
Martin
@mgg1010 started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@Gordon, @Pat
After a big of slogging, I think I may have fixed Wiznet. (OK, a bit optimistic, but it looks more reliable now in my testing :)
I found three bugs
The HTTP code was using srcport and dstport both with the same value, which I think caused GETs to fail when they overlapped.
The DNS code wasn't releasing a socket, which caused "no free sockets" after 8 DNS queries.
The socket code wasn't clearing the nonblock status, which caused odd things to happen if a socket was reused.
I've submitted a pull request - hopefully Gordon can review and include these fixes in a future build - assuming I've not got anything wrong!
Martin