42.2.5 poor performance with bulk copy #1312
I'm submitting a ...
Describe the issue
The text was updated successfully, but these errors were encountered:
The problem is SSL sockets use buffers for input, and `stream#available()` might easily return 0 even though the data is available in the downstream socket. The only viable WA is to perform `read` calls, however it might impact performance (e.g. for async copy operations). The resolution is to throttle read calls for copy api, and keep 1ms reads for replication api. fixes pgjdbc#1312