|
@ -651,7 +651,7 @@ void LP_rpc_processreq(void *_ptr) |
|
|
else |
|
|
else |
|
|
{ |
|
|
{ |
|
|
usleep(10000); |
|
|
usleep(10000); |
|
|
//printf("got.(%s) %d remains.%d of total.%d\n",jsonbuf,recvlen,remains,len);
|
|
|
printf("got.(%s) %d remains.%d of total.%d\n",jsonbuf,recvlen,remains,len); |
|
|
//retstr = iguana_rpcparse(space,size,&postflag,jsonbuf);
|
|
|
//retstr = iguana_rpcparse(space,size,&postflag,jsonbuf);
|
|
|
if ( flag == 0 ) |
|
|
if ( flag == 0 ) |
|
|
break; |
|
|
break; |
|
@ -662,11 +662,11 @@ void LP_rpc_processreq(void *_ptr) |
|
|
if ( recvlen > 0 ) |
|
|
if ( recvlen > 0 ) |
|
|
{ |
|
|
{ |
|
|
jsonflag = postflag = 0; |
|
|
jsonflag = postflag = 0; |
|
|
portable_mutex_lock(&LP_commandmutex); |
|
|
//portable_mutex_lock(&LP_commandmutex);
|
|
|
retstr = stats_rpcparse(space,size,&jsonflag,&postflag,jsonbuf,remoteaddr,filetype,RPC_port); |
|
|
retstr = stats_rpcparse(space,size,&jsonflag,&postflag,jsonbuf,remoteaddr,filetype,RPC_port); |
|
|
//if ( strcmp("5.9.253.195",remoteaddr) == 0 )
|
|
|
//if ( strcmp("5.9.253.195",remoteaddr) == 0 )
|
|
|
// printf("RPC.(%s)%s\n",jsonbuf,retstr);
|
|
|
// printf("RPC.(%s)%s\n",jsonbuf,retstr);
|
|
|
portable_mutex_unlock(&LP_commandmutex); |
|
|
//portable_mutex_unlock(&LP_commandmutex);
|
|
|
if ( filetype[0] != 0 ) |
|
|
if ( filetype[0] != 0 ) |
|
|
{ |
|
|
{ |
|
|
static cJSON *mimejson; char *tmp,*typestr=0; long tmpsize; |
|
|
static cJSON *mimejson; char *tmp,*typestr=0; long tmpsize; |
|
|