1
0
Fork 0

Service closes backup connection

From my understanding of the connection and gzip, this should not be
necessary, but without it I get a timeout on the client side.
master
Philip O'Toole 9 months ago
parent cd0b46d5ef
commit f300afde46

@ -397,12 +397,9 @@ func (s *Service) handleConn(conn net.Conn) {
// space on the wire.
br.Compress = true
if err := s.db.Backup(br, conn); err != nil {
conn.Close()
return
s.logger.Printf("failed to stream backup: %s", err.Error())
}
// XXXX
return //// HAVE TO CLOSE THIS CONNECTION TO SIGNAL OTHER SIDE, WHY?
return // Required to signal end of stream. I do not know why. :-(
case proto.Command_COMMAND_TYPE_LOAD:
stats.Add(numLoadRequest, 1)

Loading…
Cancel
Save