I just tried using fcntl(FH, F_SETFL, $flags | O_NONBLOCK);, but it gave me this error:
Your vendor has not defined Fcntl macro F_SETFL, used at server.pl line 20.
What do I do now? :-/ | [reply] [d/l] |
| [reply] |
chromatic, the error:
Your vendor has not defined Fcntl macro F_SETFL, used at server.pl line 20.
means that Zip did use Fcntl and that it reported that F_SETFL was not defined on the platform in question (at the time that the module was compiled).
-
tye
(but my friends call me "Tye")
| [reply] |
You can set it to nonblocking using setsockopt().
But i have one moer doubt please.
How accept() will hang if it is blocking ?
whether it is bblocking or non blocking it has to process the connect request fully and if there is any RST from clietnt also.
Is it related with different clients connect requests?because in this case only this nonblock eill be usefull to process other client request instaed of hanging with one client
Please clear my doubt.
Thanks and Regards
Jyothi Vajja
| [reply] |