rsocket connect() with timeout: use getsockopt() to get result rather than calling connect() a second time, enhance tests

Merged Bitbucket Importer requested to merge bitbucket/merged-pr-86 into branch/default

Created originally on Bitbucket by bdkearns (Brian Kearns)

Was already merged in Bitbucket before import, marked as merged by the import user

Source changeset not longer availableat the time of import. Commit listwill look empty

Merge request reports