|
@ -312,7 +312,7 @@ int32_t LP_mainloop_iter(char *myipaddr,struct LP_peerinfo *mypeer,int32_t pubso |
|
|
{ |
|
|
{ |
|
|
char keepalive[128]; |
|
|
char keepalive[128]; |
|
|
sprintf(keepalive,"{\"method\":\"keepalive\"}"); |
|
|
sprintf(keepalive,"{\"method\":\"keepalive\"}"); |
|
|
printf("send keepalive\n"); |
|
|
printf("send keepalive to %s\n",pushaddr); |
|
|
LP_send(pullsock,keepalive,0); |
|
|
LP_send(pullsock,keepalive,0); |
|
|
} |
|
|
} |
|
|
counter++; |
|
|
counter++; |
|
|