(network, address string)
| 1900 | type lowWriteBufferDialer struct{} |
| 1901 | |
| 1902 | func (d *lowWriteBufferDialer) Dial(network, address string) (net.Conn, error) { |
| 1903 | c, err := net.Dial(network, address) |
| 1904 | if err != nil { |
| 1905 | return nil, err |
| 1906 | } |
| 1907 | c.(*net.TCPConn).SetWriteBuffer(100) |
| 1908 | return c, nil |
| 1909 | } |
| 1910 | |
| 1911 | func TestCustomFlusherTimeout(t *testing.T) { |
| 1912 | if runtime.GOOS == "windows" { |