Comments (6)
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.
[deleted comment]
from servicestack.
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.
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.
Fixed ! thanks a lot !
Original comment by [email protected]
on 8 Sep 2010 at 11:37
from servicestack.
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)
- Serializing byte[] cannot be Deserialized.
- CreateTransaction failing HOT 1
- TypeInitializationException when a class have a property that return an XElement value
- TypeInitializationException when deserialiaze a string to a class that have a static property
- Priority of Web Sockets HOT 1
- How to Store values in session
- Implement Forms Authentication Using ServiceStack HOT 1
- OrmPostgreSQL HOT 1
- Supporting for redis ZCOUNT command
- WCF helper implementation
- Null reference exception on call to GetAll HOT 2
- Broken link on Project Home HOT 2
- DeSerialising dictionary with type Dictionary<Tuple<string,string>,double>>() does not work
- Wrong Encoding
- ServiceStack.Redis reading large files from Redis server
- ServiceStack.Redis.RedisResponseException
- Db number is fogotten when using pooled clients.
- SOAP request and response wrappers
- Tutorial references ServiceStackHttpHandlerFactory which isn't included in ServiceStack.dll
- Future roadmap suggestion
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from servicestack.