Skip to content

Commit

Permalink
Merge branch 'master' of ssh://192.168.100.3:/var/services/homes/samy…
Browse files Browse the repository at this point in the history
…/projects/git/go/go-ora
  • Loading branch information
sijms committed Mar 26, 2023
2 parents c9912b4 + 66e43a6 commit 717ff5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions v2/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
"reflect"
"regexp"
"strings"
"syscall"
)

type StmtType int
Expand Down Expand Up @@ -1735,7 +1736,7 @@ func (stmt *Stmt) _query() (driver.Rows, error) {
stmt.connection.session.ResetBuffer()
err = stmt.write()
if err != nil {
if errors.Is(err, io.EOF) {
if errors.Is(err, io.EOF) || errors.Is(err, syscall.EPIPE) {
tracer.Print("reconnect trial #", writeTrials+1)
stmt.connection.State = Closed
err = stmt.connection.Open()
Expand All @@ -1749,7 +1750,7 @@ func (stmt *Stmt) _query() (driver.Rows, error) {
dataSet = new(DataSet)
err = stmt.read(dataSet)
if err != nil {
if errors.Is(err, io.EOF) {
if errors.Is(err, io.EOF) || errors.Is(err, syscall.EPIPE) {
stmt.connection.connOption.Tracer.Print("reconnect trial #", writeTrials+1)
stmt.connection.State = Closed
err = stmt.connection.Open()
Expand Down

0 comments on commit 717ff5b

Please sign in to comment.