[zeromq-dev] 30-Line Webserver errors

Pieter Hintjens ph at imatix.com
Fri Aug 16 12:24:56 CEST 2013


On Thu, Aug 15, 2013 at 2:50 PM, Uli Köhler
<ulikoehler.dev at googlemail.com> wrote:


> The executable prints the request to the CLI which is obviously incomplete:

Right, the code is not realistic; it doesn't read the entire request.
It should loop and build up the request until it sees a blank line.

> Additionally the connection does not seem to be closed when sending the
> empty frame.

That would be a bug.

> src/router.cpp, line 36 reads as:
> //  raw_sock functionality in ROUTER is deprecated

We renamed the functionality to a new ZMQ_STREAM socket type, but the
existing API wasn't changed.

-Pieter



More information about the zeromq-dev mailing list