When there is packet loss, the server increments the delay in (number of lost packets)/10. This should fix the situation faster.
Bugfix: The client asks for the lost packets also at the end of the transfer instead of returning ack. This should solve many transfer errors.
Other small changes.