mirror of https://github.com/jackc/pgx.git
The reason for a high max wait time was to ensure that reads aren't cancelled when there is data waiting for it in Go or the OS's receive buffer. Unfortunately, there is no way to know ahead of time how long this should take. This new code uses 2x the fastest successful read time as the max read time. This allows the code to adapt to whatever host it is running on. https://github.com/jackc/pgx/issues/1481 |
||
---|---|---|
.. | ||
bufferqueue.go | ||
nbconn.go | ||
nbconn_fake_non_block.go | ||
nbconn_real_non_block.go | ||
nbconn_test.go |