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.

Daniel

-- 
| ---------------------------------------------------------------
| Daniel P. Stasinski | http://www.saidsimple.com
| [EMAIL PROTECTED] | http://www.disabilities-r-us.com
| XMMP: [EMAIL PROTECTED] | http://www.avenues.org
| Google Talk: mooooooo | http://www.scriptkitties.com

-------------------------------------------------------------------------
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

Reply via email to