pgx/internal/nbconn
Jack Christensen 898891a6ee Fake non-blocking read adapts its max wait time
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
2023-01-28 09:35:52 -06:00
..
bufferqueue.go iobufpool uses *[]byte instead of []byte to reduce allocations 2023-01-28 08:02:49 -06:00
nbconn.go Fake non-blocking read adapts its max wait time 2023-01-28 09:35:52 -06:00
nbconn_fake_non_block.go Fix typo in Windows code 2022-08-11 20:59:37 -05:00
nbconn_real_non_block.go Save memory on non blocking read path 2023-01-27 20:53:30 -06:00
nbconn_test.go Fix flickering test on CI 2022-07-16 18:16:19 -05:00