(Phobos - SocketStream) Am I doing something wrong or is this a bug?
BCS
none at anon.com
Tue Nov 3 15:01:41 PST 2009
Hello Zane,
> While trying to learn sockets in Phobos, I ran into a problem. I was
> trying to download the google logo via an HTTP GET. when I do a
> socketStream.read, the returned "bytes read" value indicates that less
> bytes were read in than were available (4097 bytes to be exact). The
> google logo is 8558 bytes in size as indicated by the HTTP headers
> received. Here is my code:
>
The network connection might not have all the data yet. Try calling it in
a loop kind of like your header reading code.
More information about the Digitalmars-d
mailing list