sock: Fix a deadlock because i did not release the lock in a specific context.
+ minor code formating changes.
sock: revisit the ack algorithm to fix a problem when a server is in blocking mode. I do not know yet if that will have any performance impact in non-blocking mode.
sock: fix a deadlock in blocking mode; if send and recv events are generated concurrently, we potentially ended by blocking again even if events were still pending, and therefore potentially never pushed to the application.
Fixes another deadline with using the blocking mode on unreliable networks: if a message does not go through, make sure we do not block indefinitely so the transport can re-send the message.
sock: fix a problem with RMA READ operations -- i did not handle correctly TX buffers when sending the RMA_READ_REPLY message
+ some minor code clean-up
sock: Fix the generation of invalid events in the context of RMA READ operations
+ some minor code cleanup.
sock: patch from Scott to fix some compilation warnings.
Merge branch 'master' into gvallee/sock