Merge pull request #589 from mulesoft/MULE-7515

MULE-7515 - using buffered input stream instead of socket input stream d...
(cherry picked from commit 239da75c03d7bd8dcb25fb6211ec10787b201642)