code: 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()
  }
docs: // SetSocketTimeout sets the amount of time to wait for a non-responding
  // socket to the database before it is forcefully closed.