incorrect value with socket stream and open-stream-p
"John DeSoi (as john at desoi dot dev)" <[email protected]>
| Newsgroups | gmane.lisp.lispworks.general |
|---|---|
| Message-ID | <0100019cc43e39dc-e53b9498-584a-4db5-a5b9-1e78f7a45b03-000000@email.amazonses.com> |
I'm using comm:open-tcp-stream to connect to PostgreSQL. When calling the disconnect function, sometimes open-stream-p returns nil when (1) the connection has never been closed and (2) PostgreSQL shows the connection is active. In the debugger the slot value for STREAM::OPEN-P is T. I tried to use this to send the termination request and close the connection, but that results in a STREAM-CLOSED-ERROR. In the case I'm testing, the disconnect operation is not being executed in the same process as the connection stream. Does this matter? I could not find any kind of limitation in the documentation. I'm using LW 8.1.2 on macOS. Thanks, John DeSoi, Ph.D. _______________________________________________ Lisp Hug - the mailing list for LispWorks users [email protected] http://www.lispworks.com/support/lisp-hug.html