Fixed bug where the size was not set when using the Socket transport