Skip to content

Commit

Permalink
closing connection
Browse files Browse the repository at this point in the history
  • Loading branch information
filimonov committed Dec 4, 2017
1 parent a89b7c3 commit b366e69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clickhouse_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ func makeQuery2(cx context.Context, query, queryID, format string, interactive b
return
}

// connect to this socket
conn, err := net.Dial("tcp", getHost())
conn, err := net.Dial("tcp", getHost()) // todo: ssl
defer conn.Close() // todo: keepalive
if err != nil {
qe := queryExecution{Err: err, PacketType: errPacket}
queryExecutionChannel <- qe
Expand Down

0 comments on commit b366e69

Please sign in to comment.