On Sun, 09 Mar 2014 04:13:33 GMT, Etienne Cimon wrote:

On Sun, 09 Mar 2014 02:20:08 GMT, Stephan wrote:

That way you don't need to wait until all data came in. Reading can be done in chunks then

I think it was for a war game with a C++ background. He was probably trying to rule out D from the start, didn't even look at the interface of the connection stream. Whenever a big improvement over the old comes up, resistance to change is in its way smiling gracefully; until the tide comes. :P

You obviously did read the docs yet still can't answer my question. I never ask questions until I've read the docs and looked at examples. I asked because things don't work as they should, not because I don't know how to approach them. It is TCP there are not rocket science.

I also wrote test app using leastSize() property from the start (as this is used in conn.write(InputStream)) but this solution desn't work either because conn.will still block on empty(). Yes, I come from C++ so I expect things to be at least as good in newer languages. My client app is in C# and as a D enthusiast I wanted to use Vibe.d for backend.