Dec 11, 2018 - terminateTransaction can now be used with the Datecs Bluepad-50. Resolved issue with timeout getting extended past the set value during communication over a. Amendments to receipt data for First Data Rapid Connect. Datecs FPrint. The resident mode timeout, used to check the execution folder is 0.2 seconds. By themselves are not passed along with the data value.
Consider this more of a long comment than an answer but as several people have noted the network is orders of magnitude slower than your processor. The point of non-blocking i/o is that the difference is so great that you can actually use it to do real work rather than blocking. Here you are just pounding on the elevator button hoping that makes a difference. I'm not sure how much of your code is real and how much is chopped up for posting but in the server you don't account for (ret 0) i.e.
Normal shutdown by the peer. The select in the client is wrong.
Again, not sure if that was sloppy editing or not but if not then the number of parameters are wrong but, more concerning, the first parameter - i.e. Should be the highest file descriptor for select to look at plus one - is zero.
Depending on the implementation of select I wonder if that is in fact just turning select into a fancy sleep statement.