Re: [infinispan-dev] simulating connection timeout

2012-01-19 Thread Michal Linhard
On 01/19/2012 02:27 PM, Michal Linhard wrote: > I wanted to test my theory that the hot rod client connection timeout we > added as part of > https://issues.jboss.org/browse/ISPN-1565 > is being ignored > (taking into account https://issues.jboss.org/browse/ISPN-1755) > I configured both socket tim

Re: [infinispan-dev] simulating connection timeout

2012-01-19 Thread Michal Linhard
I wanted to test my theory that the hot rod client connection timeout we added as part of https://issues.jboss.org/browse/ISPN-1565 is being ignored (taking into account https://issues.jboss.org/browse/ISPN-1755) I configured both socket timeout and connect timeout for 2 min but in certain tests

Re: [infinispan-dev] simulating connection timeout

2012-01-19 Thread Manik Surtani
What is this for? Perhaps just mock up the client to use a mock socket? On 19 Jan 2012, at 12:57, Bela Ban wrote: > If this is done in Java code, you could use byteman to change the behavior. > > Intercepting and changing the data flow in the TCP/IP stack itself gets > more tricky; you have to

Re: [infinispan-dev] simulating connection timeout

2012-01-18 Thread Bela Ban
If this is done in Java code, you could use byteman to change the behavior. Intercepting and changing the data flow in the TCP/IP stack itself gets more tricky; you have to insert a packet filter and then drop/reorder packets. In Java, you might be able to use jnetpcap, which allows you to get