Browse Source

Test

etomic
jl777 7 years ago
parent
commit
befa5bdaca
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_network.c

2
iguana/exchanges/LP_nativeDEX.c

@ -323,7 +323,7 @@ void LP_mainloop(char *myipaddr,struct LP_peerinfo *mypeer,uint16_t mypubport,in
free(retstr);
while ( 1 )
{
if ( (rand() % 100) == 0 )
if ( 0 && (rand() % 100) == 0 )
printf("mainloop\n");
if ( LP_mainloop_iter(myipaddr,mypeer,pubsock,pushaddr,pullsock,myport,passphrase,profitmargin) == 0 )
usleep(100000);

2
iguana/exchanges/LP_network.c

@ -35,7 +35,7 @@ int32_t LP_send(int32_t sock,char *msg,int32_t freeflag)
return(-1);
}
len = (int32_t)strlen(msg) + 1;
for (i=0; i<100; i++)
for (i=0; i<1000; i++)
{
pfd.fd = sock;
pfd.events = NN_POLLOUT;

Loading…
Cancel
Save