On Tue, May 27, 2008 at 6:30 PM, Vlad Seryakov <[EMAIL PROTECTED]> 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. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ naviserver-devel mailing list naviserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/naviserver-devel