Revision fcbde154 net_helper-ml.c

View differences:

net_helper-ml.c
23 23
struct event_base *base;
24 24

  
25 25
#define NH_BUFFER_SIZE 1000
26
#define NH_PACKET_TIMEOUT {0, 500*1000}
26 27

  
27 28
static int sIdx = 0;
28 29
static int rIdx = 0;
......
391 392
		return -1;
392 393
	}
393 394
	else {
394
		struct timeval timeout = {0, 500*1000};
395
		struct timeval timeout = NH_PACKET_TIMEOUT;
395 396
		event_base_once(base, -1, EV_TIMEOUT, send_to_peer_cb, (void *) p, &timeout);
396 397
		return buffer_size; //p->mSize;
397 398
	}

Also available in: Unified diff