scassandra / scassandra-server

Stubbed Cassandra
http://www.scassandra.org
Other
87 stars 34 forks source link

[#112] Add 'closed_connection' prime result. #113

Closed tolbertam closed 8 years ago

tolbertam commented 8 years ago

Allows closing connections as a result of a request being received. Can choose to reset/close/halfclose connection (similar to DELETE on /current/connections)

{
  "when":{
    "query":"select * from people"
  },
  "then":{
    "result":"closed_connection",
    "config":{
      "error.close_type":"reset"
    }
  }
}
tolbertam commented 8 years ago

I consider this done, but will need to rebase after #111 is merged.

chbatey commented 8 years ago

LGTM after rebase

tolbertam commented 8 years ago

rebased and will merge upon travis passing.