Hi, Under certain bursty load conditions, AGVCR can loose packets.
The problem was seen under Windows, but could probably occur on other platforms as well. Increasing the socket send and receive buffer size to 64000 solves the problem. The attached patch is against agvcr-1.5.8. Regards, Claus. -- -------------------------------------------------------- Claus Endres | Phone: +61-3-5998 2310 Endres Consulting Pty. Ltd. | Mobile: +61-418-595 136 10 Facey Road | Fax: +61-3-5998 2540 Devon Meadows, VIC 3977 | cl...@endresconsulting.com
--- src/netconn.c.orig 2006-04-25 16:32:32.000000000 +1000 +++ src/netconn.c 2006-04-25 19:23:29.000000000 +1000 @@ -409,6 +409,7 @@ int openNetConn(NetConn * nc) { int sock_flag; + int buflen = 64000; nc->active = 1; // default to 'active' // We have to have a port number @@ -532,6 +533,8 @@ } #endif } + if (setsockopt(nc->sock, SOL_SOCKET, SO_SNDBUF, (void *) &buflen, sizeof(buflen)) < 0) perror("Trying to set SNDBUF"); + if (setsockopt(nc->sock, SOL_SOCKET, SO_RCVBUF, (void *) &buflen, sizeof(buflen)) < 0) perror("Trying to set RCVBUF"); if(nc->active) { if(nc->is_listener) {