Socket timeouts

- added timeout for read(SO_TIMEOUT) and close(SO_LINGER) operations