Changeset: b2057b00c997 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=b2057b00c997
Modified Files:
        monetdb5/modules/mal/mal_mapi.mx
Branch: Aug2011
Log Message:

doChallenge: inform client when refusing connections for GDKembedded


diffs (15 lines):

diff --git a/monetdb5/modules/mal/mal_mapi.mx b/monetdb5/modules/mal/mal_mapi.mx
--- a/monetdb5/modules/mal/mal_mapi.mx
+++ b/monetdb5/modules/mal/mal_mapi.mx
@@ -444,7 +444,10 @@ doChallenge(stream *in, stream *out) {
                        /* in embedded mode we allow just one client */
                        (GDKembedded && MCcountClients() > 1))
        {
-               /* FIXME: tell the client in a normal way! */
+               if (GDKembedded) {
+                       mnstr_printf(fdout, "!only one client allowed in 
embedded mode\n");
+                       mnstr_flush(fdout);
+               } /* else the client must have gone away, so no reason to write 
something */
                mnstr_close(fdin);
                mnstr_destroy(fdin);
                mnstr_close(fdout);
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to