Hi All,

I am writing a redis client in fpc and found that even when the connection
is closed by server (via redis CLIENT KILL),  send and receive can still be
done without error.  i.e.:

- fpsend returns the number of bytes sent
- fprecv returns 0 (but NOT -1, which indicate a "detectable" error, as per
the document)

I also checked socketerror after send/recv, no error is reported.

How do I tell if a socket is still connected or not?

Thanks
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to