This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: On WIN7, write() not returning immediately even on non-blocking sockets
Pankaj Yadav writes:
> The code where it gets stuck is
>
> printf("Nonblocking:%d\n",(fcntl(t_qelem->respsock, F_GETFL, 0) &
> O_NONBLOCK))?1:0;
> i = write(t_qelem->respsock,&t_qelem->webtoresp[t_qelem->webtorespsent],t_qelem->webtoresplen-t_qelem->webtorespsent);
> printf("written\n");
>
> Output is : Non-blocking:1 and then it does NOT print "written" ever.
You'd have better chances of getting help if you could come up with a
minimal program that exhibits the error.
Regards,
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple