peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.31k stars 202 forks source link

"freads fgets" are also blocked when the filehandle or socket has been seted to non blocked mode #1028

Closed avriltank closed 2 years ago

avriltank commented 2 years ago

when we set the non blocked mode of socket or file,"freads fgets" function should return soon

jakubmisek commented 2 years ago

thanks,

this should be handled in https://github.com/peachpiecompiler/peachpie/blob/2e45f503bef5da4bbc87dc84f39d64c0ff212f65/src/Peachpie.Library/Streams/SocketStream.cs#L109 , if you see what may the problem?

avriltank commented 2 years ago

Thanks,It is just my code error. I am very sorry for that.

avriltank commented 2 years ago

In my project,I use one csharp libary,that lib code change the block mode