Changeset: 117600297d15 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=117600297d15
Modified Files:
        monetdb5/modules/mal/mal_mapi.c
Branch: Jun2016
Log Message:

Don't write to client when it can't accept messages yet.


diffs (17 lines):

diff --git a/monetdb5/modules/mal/mal_mapi.c b/monetdb5/modules/mal/mal_mapi.c
--- a/monetdb5/modules/mal/mal_mapi.c
+++ b/monetdb5/modules/mal/mal_mapi.c
@@ -366,9 +366,10 @@ SERVERlistenThread(SOCKET *Sock)
 #endif
                data = GDKmalloc(sizeof(*data));
                if( data == NULL){
-                       mnstr_printf(data->out, "!internal server error (cannot 
allocate space)  please try again later\n");
-                       mnstr_flush(data->out);
-                       return;
+                       closesocket(msgsock);
+                       showException(GDKstdout, MAL, "initClient",
+                                                 "cannot allocate space");
+                       continue;
                }
                data->in = socket_rastream(msgsock, "Server read");
                data->out = socket_wastream(msgsock, "Server write");
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to