Socket changes when receiving process messages
Merge pull request #360 from aflatter/socket_state

Socket state can be updated when receiving process messages