Changeset: 0ddfe20c620d for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0ddfe20c620d Modified Files: clients/mapiclient/stethoscope.c Branch: Feb2013 Log Message:
stethoscope: remove UNIX sockets restriction By opening a UDP connection on the correct host(name) (where we as stethoscope run, iso on the target connection's hostname) we don't need a TCP connection to the server. Actually fixes a problem with stethoscope interaction between hosts. diffs (23 lines): diff --git a/clients/mapiclient/stethoscope.c b/clients/mapiclient/stethoscope.c --- a/clients/mapiclient/stethoscope.c +++ b/clients/mapiclient/stethoscope.c @@ -284,10 +284,6 @@ main(int argc, char **argv) if (mapi_error(dbh)) die(dbh, hdl); host = strdup(mapi_get_host(dbh)); - if (*host == '/') { - fprintf(stderr, "!! UNIX domain socket not supported\n"); - goto stop_disconnect; - } #ifdef _DEBUG_STETHOSCOPE_ printf("-- connection with server %s\n", uri ? uri : host); #endif @@ -314,7 +310,7 @@ main(int argc, char **argv) } for (portnr = 50010; portnr < 62010; portnr++) { - if ((conn = udp_rastream(host, portnr, "profileStream")) != NULL) + if ((conn = udp_rastream(hostname, portnr, "profileStream")) != NULL) break; } if (conn == NULL) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list