pg/sample
Lars Kanis c76b123bf2 Don't cache the socket-IO while connection setup
The file_no of the socket IO can change while connecting.
This can happen when alternative hosts are tried,
while GSS authentication
and when falling back to unencrypted in sslmode:prefer .
Therefore expire the socket IO at each connect_poll and reset_poll call.

Caching the IO previosly led to occasional errors kind of:
  Errno::EBADF: Bad file descriptor

With the recreation of an IO object per connect_poll the fileno can change in the TcpGateScheduler when running on Windows.
I didn't dig deeper why this happens, but it fails in spec
  "with a Fiber scheduler connects several times concurrently"
and sometimes in other specs.
2022-03-09 19:58:02 +01:00
..
array_insert.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
async_api.rb Don't cache the socket-IO while connection setup 2022-03-09 19:58:02 +01:00
async_copyto.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
async_mixed.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
check_conn.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
copydata.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
copyfrom.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
copyto.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
cursor.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
disk_usage_report.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
issue-119.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
losample.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
minimal-testcase.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
notify_wait.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
pg_statistics.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
replication_monitor.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
test_binary_values.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
wal_shipper.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00
warehouse_partitions.rb These files have no shebang and should not be executable 2022-02-23 18:56:29 -05:00