Permalink
Browse files

Handle connection timeout while initial request is in progress.

fixes #88
  • Loading branch information...
1 parent e4da4b0 commit 951f7205bdc8bf0583f2d41866dae46c039297b8 @pekim pekim committed Mar 25, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/connection.coffee
View
@@ -103,6 +103,8 @@ class Connection extends EventEmitter
enter: ->
@sendInitialSql()
events:
+ connectTimeout: ->
+ @transitionTo(@STATE.FINAL)
data: (data) ->
@sendDataToTokenStreamParser(data)
message: (error) ->

0 comments on commit 951f720

Please sign in to comment.