Handle EINPROGRESS status from PR_Connect.
Handle EINPROGRESS status from PR_Connect.

NSPR manages all file descriptors in nonblocking mode, so it
is possible to get PR_FAILURE from PR_Connect when connecting to
a socket with oserror() returning EINPROGRESS. In this case,
the client must wait for the socket using __pmSelect{Read,WRite}
and then call __pmConnectCheckError in order to determine
whether the connection was successful.

This fixes qa test case 439 for NSS/NSPR enabled builds.

wuliming/pcp,tjanez/pcp,ryandoyle/pcp_original,mbaldessari/pcp,adfernandes/pcp,wuliming/pcp,adfernandes/pcp,edwardt/pcp,prasincs/pcp,mbaldessari/pcp,aeg-aeg/pcpfans,andyvand/cygpcpfans,andyvand/cygpcpfans,prasincs/pcp,edwardt/pcp,aeg-aeg/pcpfans,prasincs/pcp,ryandoyle/pcp_original,ryandoyle/pcp_original,andyvand/cygpcpfans,edwardt/pcp,adfernandes/pcp,wuliming/pcp,adfernandes/pcp,aeg-aeg/pcpfans,wuliming/pcp,adfernandes/pcp,andyvand/cygpcpfans,andyvand/cygpcpfans,prasincs/pcp,adfernandes/pcp,ryandoyle/pcp_original,wuliming/pcp,aeg-aeg/pcpfans,prasincs/pcp,tjanez/pcp,prasincs/pcp,mbaldessari/pcp,mbaldessari/pcp,mbaldessari/pcp,edwardt/pcp,aeg-aeg/pcpfans,aeg-aeg/pcpfans,ryandoyle/pcp_original,adfernandes/pcp,adfernandes/pcp,andyvand/cygpcpfans,tjanez/pcp,wuliming/pcp,aeg-aeg/pcpfans,prasincs/pcp,edwardt/pcp,tjanez/pcp,tjanez/pcp,edwardt/pcp,mbaldessari/pcp,andyvand/cygpcpfans,edwardt/pcp,ryandoyle/pcp_original,ryandoyle/pcp_original,tjanez/pcp,ryandoyle/pcp_original,edwardt/pcp,aeg-aeg/pcpfans,wuliming/pcp,andyvand/cygpcpfans,tjanez/pcp,wuliming/pcp,tjanez/pcp,prasincs/pcp