replaced rio_read() calls with readn() calls, saved old proxy.c to proxy.c.old