fix crash: Create a local copy of the <host:port> string.
Merge pull request #8 from hannesgredler/socket

fix crash: Create a local copy of the <host:port> string.