dispatch_connection: make sure we process the full buffer

In the case we have issues sending data and delay, we'd wrongly throw
away the last part of our buffer (as soon as we'd seen an EOF we'd stop
instead of processing up untill the end of data read).