Fix get body parts for fixed length messages and some parameters configuration

* upload_window is not used any more, the gen_server synchronous call regulate the flow
* pool options are a grouped argument in connect call
Fix error related with connection_close test. (exception made gen_server crash).