Browse Source

Test

etomic
jl777 8 years ago
parent
commit
ea9efb63b8
  1. 2
      iguana/exchanges/LP_socket.c

2
iguana/exchanges/LP_socket.c

@ -372,7 +372,7 @@ void LP_dedicatedloop(char *symbol,char *ipaddr,uint16_t port)
fds.events |= (POLLOUT | POLLIN);
if ( poll(&fds,1,timeout) > 0 && (fds.revents & POLLOUT) != 0 && (sitem= queue_dequeue(&ep->sendQ)) != 0 )
{
//printf("sending.(%s)\n",str);
printf("sending.(%s)\n",sitem->str);
if ( LP_socketsend(ep->sock,(uint8_t *)sitem->str,(int32_t)strlen(sitem->str)) <= 0 )
{
printf("%s:%u is dead\n",ipaddr,port);

Loading…
Cancel
Save