Changeset: c7ba405778e0 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c7ba405778e0
Modified Files:
        monetdb5/mal/mal_session.c
Branch: default
Log Message:

Enable timeout on input.

With this change (and the changes on which this depends), we can now
run the complete test suite without any threads getting killed.
Threads now exit by themselves when the server wants to exit.


diffs (11 lines):

diff --git a/monetdb5/mal/mal_session.c b/monetdb5/mal/mal_session.c
--- a/monetdb5/mal/mal_session.c
+++ b/monetdb5/mal/mal_session.c
@@ -325,6 +325,7 @@ MSscheduleClient(str command, str challe
         * demand. */
 
        /* fork a new thread to handle this client */
+       mnstr_settimeout(c->fdin->s, 50, GDKexiting);
        if (MT_create_thread(&p, MSserveClient, (void *) c, MT_THR_DETACHED) != 
0) {
                mnstr_printf(fout, "!internal server error (cannot fork new "
                                                   "client thread), please try 
again later\n");
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to