Fixed a deadlock in relayd and added a minimum chunk size feature to client.