a strange issue (maybe firewall?)...

Jan 24, 2009 at 10:14 AM
I've a strange issue, maybe not related directly wiyh memcached provider code, but I try to ask for support anyway...

I've downloaded the code and made a sample in my PC that simply insert and read data from/to the cahce and from/to the session using memcached providers (last release) and memcached 1.2.6. This sample is perfectly working on my PC (a simple vista laptop), but don't works of moved to my work PC (XP pro in a LAN).
I think that I've opened all the firewall ports (using telnet I'm able to connect to memcached server in both the machines) buy here is what i see in the trace logger (DEBUG level) in my work PC:

Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl: 2009-01-24 12:03:38,733 [9] DEBUG Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl [(null)] - Acquiring stream from pool.
Enyim.Caching.Memcached.PooledSocket: 2009-01-24 12:03:38,782 [9] DEBUG Enyim.Caching.Memcached.PooledSocket [(null)] - Socket 69bfaa7e-4888-4247-ac2b-1371d2b7bdf5 was reset
Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl: 2009-01-24 12:03:38,785 [9] DEBUG Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl [(null)] - Socket was reset. 69bfaa7e-4888-4247-ac2b-1371d2b7bdf5
Enyim.Caching.Memcached.PooledSocket: 2009-01-24 12:03:38,812 [9] DEBUG Enyim.Caching.Memcached.PooledSocket [(null)] - Writing 3 buffer(s)

in my home PC I see:
Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl: 2009-01-24 12:03:38,733 [9] DEBUG Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl [(null)] - Acquiring stream from pool.
Enyim.Caching.Memcached.PooledSocket: 2009-01-24 12:03:38,782 [9] DEBUG Enyim.Caching.Memcached.PooledSocket [(null)] - Socket 69bfaa7e-4888-4247-ac2b-1371d2b7bdf5 was reset
Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl: 2009-01-24 12:03:38,785 [9] DEBUG Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl [(null)] - Socket was reset. 69bfaa7e-4888-4247-ac2b-1371d2b7bdf5
Enyim.Caching.Memcached.PooledSocket: 2009-01-24 12:03:38,812 [9] DEBUG Enyim.Caching.Memcached.PooledSocket [(null)] - Writing 3 buffer(s)
Enyim.Caching.Memcached.PooledSocket: 2009-01-24 12:03:38,822 [9] DEBUG Enyim.Caching.Memcached.PooledSocket [(null)] - ReadLine: STORED
Enyim.Caching.Memcached.PooledSocket: 2009-01-24 12:03:38,823 [9] DEBUG Enyim.Caching.Memcached.PooledSocket [(null)] - Received response: STORED
Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl: 2009-01-24 12:03:38,825 [9] DEBUG Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl [(null)] - Releasing socket 69bfaa7e-4888-4247-ac2b-1371d2b7bdf5
Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl: 2009-01-24 12:03:38,827 [9] DEBUG Enyim.Caching.Memcached.MemcachedNode+InternalPoolImpl [(null)] - Are we alive? True
ASP.default_aspx: 2009-01-24 12:03:38,828 [9] INFO  ASP.default_aspx [(null)] - Add to cache result => True
and so on...

looks like in my work PC memcached server don't send any kind of response (and actually my sample page wait for a response without showing anything...)

here config.section:
<enyim.com>
      <memcached>
        <servers>
          <add address="127.0.0.1" port="11211" />
        </servers>
        <socketPool minPoolSize="10" maxPoolSize="100"
                    connectionTimeout="00:00:10" 
                    deadTimeout="00:02:00" />
      </memcached>
    </enyim.com>
<cacheProvider defaultProvider="MemcachedCacheProvider">
      <providers>
        <add  name="MemcachedCacheProvider"
              type="MemcachedProviders.Cache.MemcachedCacheProvider, MemcachedProviders"
              keySuffix="_get2getr_" defaultExpireTime="2000"/>
      </providers>
    </cacheProvider>
<sessionState cookieless="false" regenerateExpiredSessionId="true" mode="Custom"
                    customProvider="MemcachedSessionProvider">
        <providers>
          <add  name="MemcachedSessionProvider"
                type="MemcachedProviders.Session.SessionStateProvider,MemcachedProviders"
                connectionStringName="SqlSessionServices" dbType="None"
                writeExceptionsToEventLog="false" /> <!--None-SQL-->
        </providers>
      </sessionState>        

I've played with timeouts but nothing changes...
Any suggestion? Someone experienced the same problem?
Thanks for any kind of support, I know that this post looks more like a "how deep is blue" question, but actually I don't know how to see to find my problem... :(