Giter VIP home page Giter VIP logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
I don't suppose there is anyway to write a script to replicate this bug is 
there?

In order to ensure this bug stays fixed it would be nice to have a test case 
that exhibits these bugs.

Original comment by [email protected] on 3 Sep 2010 at 6:13

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
[deleted comment]

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
you can run this with a redis server on local default port.
multiple connections with the pool, wait 10 secs, then shutdown !
thanks

using System;
using ServiceStack.Redis;
using System.Threading;

namespace Test
{
    class Program
    {
        public static void Stuff() {
            while(true) {
                try {
                    using(RedisClient rc = (RedisClient)pool.GetClient()) {
                        rc.Set<DateTime>("test",DateTime.Now);
                    }
                }
                catch (Exception e) {
                    Console.WriteLine(e.Message);
                }
                Thread.Sleep(10);
            }
        }

        public static PooledRedisClientManager pool;
        public static void Main(string[] args)
        {
            pool = new PooledRedisClientManager();
            try {
                Thread[] ths = new Thread[100];
                for(int i=0;i<ths.Length;i++) {
                    ths[i]=new Thread(new ThreadStart(Stuff));
                    ths[i].Start();
                }
                Console.WriteLine("running, waiting 10secs..");
                Thread.Sleep(10000);
                using(RedisClient rc = (RedisClient)pool.GetClient()) {
                    Console.WriteLine("shutdown redis !");
                    rc.Shutdown();
                }
            }
            catch (Exception e) {
                Console.WriteLine(e.Message);
            }
        }
    }
}

Original comment by [email protected] on 4 Sep 2010 at 10:35

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
Hi Thanks for this, I've got new builds attached that hopefully resolves this 
issue.

Let me know how it goes.

Cheers,
D

Original comment by [email protected] on 5 Sep 2010 at 12:40

Attachments:

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
Fixed ! thanks a lot !

Original comment by [email protected] on 8 Sep 2010 at 11:37

from servicestack.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 21, 2024
Sweet good to know, closing.

Original comment by [email protected] on 8 Sep 2010 at 11:40

  • Changed state: Fixed

from servicestack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.