* Conn is the base class to handle MySQL protocol. */
| 49 | Conn is the base class to handle MySQL protocol. |
| 50 | */ |
| 51 | type Conn struct { |
| 52 | net.Conn |
| 53 | |
| 54 | // we removed the buffer reader because it will cause the SSLRequest to block (tls connection handshake won't be |
| 55 | // able to read the "Client Hello" data since it has been buffered into the buffer reader) |
| 56 | |
| 57 | bufPool *BufPool |
| 58 | br *bufio.Reader |
| 59 | reader io.Reader |
| 60 | |
| 61 | copyNBuf []byte |
| 62 | |
| 63 | header [4]byte |
| 64 | |
| 65 | Sequence uint8 |
| 66 | |
| 67 | pkgErr error |
| 68 | } |
| 69 | |
| 70 | func NewConn(conn net.Conn) *Conn { |
| 71 | c := new(Conn) |
nothing calls this directly
no outgoing calls
no test coverage detected