Set buffering on network sockets.
Rewrite client around some interfaces.
Test making two queries.