pchalamet / cassandra-sharp

high performance .NET driver for Apache Cassandra
114 stars 41 forks source link

Async TCP connection to node, so connection timeout can be set. #78

Closed MCs88 closed 10 years ago

MCs88 commented 10 years ago

Hi,

I've made some enhancements on the tcp connections. The TcpClient.Connect() method uses a default 20 sec timeout, and .net framework does not expose any field or property to set it. (See issue #64) I use async connect so we can use a less than 20sec timeout to connect to a node.

MCs88 commented 10 years ago

Wow sorry I don't know what went wrong with diffing LongRunningConnection.cs. I've only added a few lines after 91.

pchalamet commented 10 years ago

merged. Thanks.