Cannot send and receive through the same socket
|Reported by:||markh||Owned by:||phoudoin|
|Component:||Network & Internet/IPv4||Version:||R1/alpha4.1|
|Has a Patch:||no||Platform:||All|
When trying to receive data from a socket I have previously sent data through, I get a connection refused error. A workaround is to use a second socket to send the data. I attached two files:
- socket_test_send_recv_1_socket.c: Uses only one socket and fails.
- socket_test_send_recv_2_sockets.c: Uses two sockets and works.
The first construction is used by Postgresql to check if it can start the statistics collector and this now fails on Haiku.