Please help, memcached on windows 2003

Jun 16, 2009 at 1:47 PM


     I downloaded win 32 port and enyim .net client, works perfectly in windows xp but not working in windows server 2003. When i start memcached service, i am able to figure out that it is listenening at port reporter).

    I investigated further by debugging the client code, and it goes into infinite loop(when trying to read from socket)

It keeps returning -1 in
   data = this.inputStream.ReadByte();
in PooledSocket.ReadLine()

Can anyone help please? Also benchmarked with velocity(nearly 1000ms faster).

Jun 16, 2009 at 4:45 PM


try this to see if firewall is blocking it on win 2003

:> telnet 11211

after that type


see if this works.

- Fahad

Jun 17, 2009 at 10:14 AM
Edited Jun 17, 2009 at 10:39 AM

hi fahadaz,

        Thanks for the time, below are my observation

        1. When i start memcached.exe(win 32 port) it start listening at, which is fair that it trying to accept connections from all interfaces.

        2. I am able to telnet into, and netstat shows two entries. One is memcached to telnet and vice versa with status 'ESTABLISHED'

  Proto  Local Address          Foreign Address        State           PID
  TCP              LISTENING       3260
  TCP        ESTABLISHED     4888
  TCP         ESTABLISHED     3260

        but still facing same problem. I am running this code in virtual machine and IPv6 is not enabled.

      Also below is the code(i am using Enyim.Caching

 <?xml version="1.0" encoding="utf-8" ?>
  <sectionGroup name="">
   <section name="memcached" type="Enyim.Caching.Configuration.MemcachedClientSection, Enyim.Caching" />
   <!-- keyTransformer="" -->
    <add address="" port="11211" />
   <socketPool minPoolSize="10" maxPoolSize="100" connectionTimeout="00:10:00" deadTimeout="00:02:00" />

 my client code is


<font size="2" color="#2b91af"><font size="2" color="#2b91af">


</font></font><font size="2" color="#2b91af">



client = new MemcachedClient();<font size="2">



StoreMode.Add, "Startups", "Suresh", DateTime.Now.AddMinutes(20));

after executing the first line ' MemcachedClient client = new MemcachedClient();' i ran 'netstat' and able to see 10 connections established and i have mentioned the minPoolSize as 10.

I am really confused here, any pointers please?