$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] [asio] boost::asio::read with empty input vector leads to an infinite loop
From: Olaf van der Spek (ml_at_[hidden])
Date: 2012-07-12 17:00:47
On Thu, Jul 12, 2012 at 10:20 PM, Michael Kochetkov
<michael.kv_at_[hidden]> wrote:
> Hello,
> In the code bellow I have forgotten to set the input vector (request) size.
> Is the code really supposed to react as an infinite loop (no errors, length
> is always 0, boost::asio::read returns immediately)
Probably. What else would you expect?
> or such behavior is a
> defect?
Olaf