Re: Minimal working example (Re: set_buffer_mode)
Henrik Grubbström <[email protected]>
| Newsgroups | gmane.comp.lang.pike.user |
|---|---|
| Organization | Roxen Internet Software AB |
| Message-ID | <[email protected]> |
Hi. On Thu, 9 Oct 2014, Stephen R. van den Berg wrote: > Well, in trying to understand how to use it (in order to repair a *very* > obscure race condition in the pgsql driver), I find the following issues: > > - There is a bug in the Stdio.Buffer implementation which prevents it > from properly fetching new input (patch attached). [...] > -------------------patch---------------------- > commit e62d7678f282cbe63fe69a5a82484a471471e654 > Author: Stephen R. van den Berg <[email protected]> > Date: Thu Oct 9 11:35:40 2014 +0200 > > Stdio.Buffer: interpret 0 differently for once==1. [...] It looks like the problem here is that nbytes == UNDEFINED wasn't handled the same way as nbytes == void. Fixed in Pike 8.0 and 8.1. -- Henrik Grubbström [email protected] Roxen Internet Software AB