Re: [gnet-devel] gnet_conn_readn does not read the specified amount of bytes



On Tue, 10 February, 2009 5:05 pm, Fred Labrosse wrote:
> On Tuesday 10 February 2009, Tim-Philipp Müller wrote:
>> I'd be a bit surprised if this API didn't work right, since I've used it
>> heavily in some of my apps and never had any issues reported in this
>> respect (binary protocols), at least with normal linux desktop systems.
>
> So you confirm that gnet_conn_readn() should indeed only read the specified
> number of bytes?

I really hate that, but, sorry, my fault.  By putting yet more printf's in my
code, I realised that actually the reading of two bytes (that I thought was
instead of one) is in fact due to a previous readn(2).

So, again, sorry, no bug (well, not in gnet anyway), just my mistake :-(

Fred




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]