Edge case with socket becoming NULL

Joe Orton joe at manyfish.co.uk
Sun Aug 2 18:34:01 EDT 2009

On Mon, Aug 03, 2009 at 12:21:18AM +0200, Helge Heß wrote:
> On 02.08.2009, at 23:54, Joe Orton wrote:
>> Note that if you're calling ne_begin_request(), you must not call
>> ne_end_request() if a ne_read_response_block() call fails - the API is
>> perhaps not clear on this point.
> Attached is a code exerpt, maybe you get the idea ...

Right, yeah, that is the problem.  Simply don't call ne_end_request() if 
you get an error from ne_discard_response(); there's nothing useful that 
ne_end_request() can do in that case.  I'll update the API docs on this 

Regards, Joe

More information about the neon mailing list