Timeout (Error 10060) with Arduino Server

After some hacking, it looks like it's my server functionality that's causing the problem.

Computer 1 gets a 10060 error (timeout) when it tries to send data to the arduino, so it seems like the problem is actually with my server code.

Any suggestions?