I forgot to mention, might be obvious though, to b backported to 1.9. Cheers.
On Tue, 15 Jan 2019 at 13:16, David Carlier <[email protected]> wrote: > > Thanks here a proposed patch. > > Kind regards. > > On Tue, 15 Jan 2019 at 13:10, Willy Tarreau <[email protected]> wrote: > > > > Hi David, > > > > On Tue, Jan 15, 2019 at 11:12:16AM +0000, David Carlier wrote: > > > Hi dear list, > > > > > > A customer of use encountered an issue while compiling with the > > > DeviceAtlas module. > > > > Ah! At least one of the device detection modules gets tested! This is > > reassuring, because quite honestly I was wondering whether we should > > really keep all this code for 2.0 if there is so little testing :-/ > > > > > Seems due to the struct buffer changes it underwent a little while ago > > > ... Could you confirm the area member is equivalent to the previous p > > > one ? > > > > No, it's a bit different. Please have a look at > > doc/internals/buffer-api.txt. > > It explains what changed. At the end of the file, there is a more complete > > description of what to replace by what for most common cases. In short, > > "area" replaces the old "data". For "p", it used to be the boundary between > > the input and the output data. Buffers don't contain input/output > > distinction > > anymore, they contain a data count ("data") and it's the channel which > > contains > > the amount of this data which is for the output. Most often you'll have the > > channel present, so that you can replace : > > > > chn->buf->p > > > > with : > > > > ci_head(chn) > > > > > > If, for maintenance reasons, you need to keep the code exactly identical > > for 1.8 and 1.9 and you have so few occurrences that you can #ifdef the > > differences, you can rely on the existence of the macro "BUF_NULL" which > > was brought by the new buffer API. > > > > Hoping this helps, > > Willy

