exception added to sock_get
avoid deprecation notice