comparison src/c/urweb.c @ 681:6c9b8875f347

Switch back to starting listener on load
author Adam Chlipala <adamc@hcoop.net>
date Sat, 28 Mar 2009 11:15:42 -0400
parents 44f23712020d
children 5bbb542243e8
comparison
equal deleted inserted replaced
680:54ec237a3028 681:6c9b8875f347
859 return ""; 859 return "";
860 else { 860 else {
861 int pass; 861 int pass;
862 client *c = uw_new_client(&pass); 862 client *c = uw_new_client(&pass);
863 863
864 char *r = uw_malloc(ctx, 41 + 3 * INTS_MAX + strlen(ctx->url_prefix) + strlen(onload)); 864 char *r = uw_malloc(ctx, 52 + 3 * INTS_MAX + strlen(ctx->url_prefix) + strlen(onload));
865 sprintf(r, " onload='client_id=%d;client_pass=%d;url_prefix=\"%s\";timeout=%d;%s'", 865 sprintf(r, " onload='client_id=%d;client_pass=%d;url_prefix=\"%s\";timeout=%d;listener();%s'",
866 (int)c->id, 866 (int)c->id,
867 c->data.used.pass, 867 c->data.used.pass,
868 ctx->url_prefix, 868 ctx->url_prefix,
869 ctx->timeout, 869 ctx->timeout,
870 onload); 870 onload);