Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
c1e0af2e8e
  1. 2
      basilisk/basilisk.c
  2. 3
      iguana/iguana_rpc.c
  3. 1
      iguana/main.c

2
basilisk/basilisk.c

@ -832,7 +832,7 @@ void basilisks_loop(void *arg)
} }
portable_mutex_unlock(&myinfo->messagemutex); portable_mutex_unlock(&myinfo->messagemutex);
if ( myinfo->RELAYID >= 0 ) if ( myinfo->RELAYID >= 0 )
usleep(500000); usleep(5000000);
else sleep(1); else sleep(1);
} }
} }

3
iguana/iguana_rpc.c

@ -844,7 +844,7 @@ char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsiz
n += i; n += i;
j = i = 0; j = i = 0;
filetype[0] = 0; filetype[0] = 0;
//printf("url.(%s) method.(%s)\n",&url[i],urlmethod); printf("url.(%s) method.(%s)\n",&url[i],urlmethod);
#ifdef __PNACL__ #ifdef __PNACL__
snprintf(furl,sizeof(furl),"%s/%s",GLOBAL_DBDIR,url+1); snprintf(furl,sizeof(furl),"%s/%s",GLOBAL_DBDIR,url+1);
#else #else
@ -1180,6 +1180,7 @@ void iguana_rpcloop(void *args)
if ( retstr != 0 ) if ( retstr != 0 )
{ {
char *response,hdrs[1024]; char *response,hdrs[1024];
printf("RETURN.(%s)\n",retstr);
if ( jsonflag != 0 || postflag != 0 ) if ( jsonflag != 0 || postflag != 0 )
{ {
response = malloc(strlen(retstr)+1024+1+1); response = malloc(strlen(retstr)+1024+1+1);

1
iguana/main.c

@ -427,6 +427,7 @@ void mainloop(struct supernet_info *myinfo)
portable_mutex_lock(&coin->allcoins_mutex); portable_mutex_lock(&coin->allcoins_mutex);
stack[depth++] = &coin->allcoins_mutex; stack[depth++] = &coin->allcoins_mutex;
} }
//printf("check jsonQ\n");
while ( iguana_jsonQ() != 0 ) while ( iguana_jsonQ() != 0 )
; ;
if ( depth > 0 ) if ( depth > 0 )

Loading…
Cancel
Save