FD_SETSIZE from the default 64 to 1024. Make PR_Poll fail with
PR_INVALID_ARGUMENT_ERROR if we try to add more than FD_SETSIZE fd's to a
fd_set. Do not pass an empty fd_set to select, and do not call select if
all three fd_sets are empty.
git-svn-id: svn://10.0.0.236/trunk@139803 18797224-902f-48f8-a5cc-f745e15eee43