Added proper handling of multiple packets.
Signed-off-by: Hector-Tosado <hector.tosado@upr.edu>
Allows for all data to arrive to server for processing.