From: Stephen D. <sd...@gm...> - 2008-05-27 19:01:28
|
On Tue, May 27, 2008 at 6:30 PM, Vlad Seryakov <vl...@cr...> wrote: > > Daniel Stasinski wrote: >> >> I have noticed a quirk in the nsmemcache module. On the very first >> "get" command from a fresh restart of nsd, it will not read past about >> 1379 bytes and returns a partial chunk of data. The length is >> correct, but the data past 1379 is corrupt. >> >> To set, I performed: >> >> ns_memcache set bigdata [string repeat "X" 2048] >> >> Next, I killed and restarted nsd and performed: >> >> ns_puts [ns_memcache get bigdata text]<br> ' returns 1 >> ns_puts [string length $text]<br/> ' returns 2048 >> ns_puts $text >> >> All subsequent reads are correct. Only the very first read is affected. >> > > Just tested it, works fine regardless is it first time or not > > I am using latest version from CVS of server and the module on Archlinux > 2.6.24-ARCH > Looks like the 'expires' and 'flags' variables might be uninitialised for the cmdSet etc. commands if values aren't passed from Tcl. |