Changeset: df258ac68aee for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/df258ac68aee
Modified Files:
        common/stream/socket_stream.c
Branch: Dec2025
Log Message:

Move interpretation of Unix domain socket OOB emulation completely to higher 
level.


diffs (24 lines):

diff --git a/common/stream/socket_stream.c b/common/stream/socket_stream.c
--- a/common/stream/socket_stream.c
+++ b/common/stream/socket_stream.c
@@ -426,20 +426,6 @@ socket_read(stream *restrict s, void *re
                        mnstr_set_error_errno(s, errno == EINTR ? 
MNSTR_INTERRUPT : MNSTR_READ_ERROR, NULL);
                        return -1;
                }
-#ifdef HAVE_SYS_UN_H
-               /* when reading a block size in a block stream
-                * (elmsize==2,cnt==1), we may actually get an "OOB" message
-                * when this is a Unix domain socket */
-               if (s->putoob == socket_putoob_unix &&
-                       elmsize == 2 && cnt == 1 && nr == 2 &&
-                       ((char *)buf)[0] == OOBMSG0 &&
-                       ((char *)buf)[1] == OOBMSG1) {
-                       /* also read (and discard) the "pay load" */
-                       (void) recv(s->stream_data.s, buf, 1, 0);
-                       mnstr_set_error(s, MNSTR_INTERRUPT, "query abort from 
client");
-                       return -1;
-               }
-#endif
                break;
        }
        if (nr == 0) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to