Uno + Ethernet Shield to PHP

KodiakBear:
so I changed the last two delays to 1ms to fake the data stream, it hangs on pass 25 waits a bit then continues. is this a logical stress test?

*Edit: second hang on pass 302

Are you talking about my code or yours? If mine, which two delays did you change? What does the serial monitor say about that connection hang? If it is "Timeout", that takes 10 seconds before the connection will timeout and resume. That normally happens when there is a connection break, like pulling the CAT5 cable connector out of the ethernet shield or powering cycling the router.

The ethernet shield does the buffering. If the tx buffer fills up, the write function is blocking (waits for tx buffer space before returning).