cconstantine
Member
This read sequence seems to work for me
Code:while (len > 0 ) { int read_bytes; if ((read_bytes = client.available()) > 0) { if (read_bytes > buf_size) read_bytes = buf_size; client.read(buf, read_bytes); len -= read_bytes; command_read += read_bytes; } }
After testing this a bit last night it looks like this isn't a complete solution.
When I let the test run indefinitely it ends up failing in the same way after 30-45 minutes. So, this is significantly better but still not quite there. I'm going to try to get another teensy/wiz850io thingy setup so I can run tests faster.
I suspect the change in socket.cpp still needs to be made to make this completely reliable.