func (s *Session) SetSocketTimeout(d time.Duration) {
	s.m.Lock()
	s.sockTimeout = d
	if s.masterSocket != nil {
		s.masterSocket.SetTimeout(d)
	}
	if s.slaveSocket != nil {
		s.slaveSocket.SetTimeout(d)
	}
	s.m.Unlock()
}
func (s *Session) SetSocketTimeout(d time.Duration) {
	s.m.Lock()
	s.sockTimeout = d
	if s.masterSocket != nil {
		s.masterSocket.SetTimeout(d)
	}
	if s.slaveSocket != nil {
		s.slaveSocket.SetTimeout(d)
	}
	s.m.Unlock()
}
func ( s * Session ) SetSocketTimeout ( d time . Duration ) { s . m . Lock ( ) s . sockTimeout = d if s . masterSocket != nil { s . masterSocket . SetTimeout ( d ) } if s . slaveSocket != nil { s . slaveSocket . SetTimeout ( d ) } s . m . Unlock ( ) }
// SetSocketTimeout sets the amount of time to wait for a non-responding
// socket to the database before it is forcefully closed.
SetSocketTimeout sets the amount of time to wait for a non - responding socket to the database before it is forcefully closed .