Modified the scim_socket to connect in nonblocking way