Thread-safety in transport.
Added handling of incoming requests and messages.