Fix #2517

pfsockopen does not supports id. So I changed it stream_socket_client, to handles ids as well.