Mark Rotteveel wrote 06.01.2022 13:06:
BTW: I think in most cases you should be able to infer from the socket error if the problem occurred on sending or on reading data (at least, when using blocking socket reads/writes, not sure about non-blocking).

  It is not true:

https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-send

The successful completion of a send function does not indicate that the data 
was successfully delivered and received to the recipient. This function only 
indicates the data was successfully sent.

https://linux.die.net/man/3/send

Successful completion of a call to send() does not guarantee delivery of the message. A return value of -1 indicates only locally-detected errors.



--
  WBR, SD.


Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to