PROTON-428: proton-hawtdispatch drops data when more than 512 bytes are read from the socket

ProtonTransport.input processes just up-to-first 512 bytes
of available input. Replace wrong call to a deprecated method with
a loop of calls to the supported method