client: Use blocking I/O

Signed-off-by: Michael Buesch <m@bues.ch>