Soft'N'Design Software
/
projects
/
ulvpn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebfb364
)
fix timeout in msec
author
Laurent Mazet
<mazet@softndesign.org>
Sun, 8 Jun 2025 21:34:46 +0000
(23:34 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Sun, 8 Jun 2025 21:34:46 +0000
(23:34 +0200)
mapec.c
patch
|
blob
|
blame
|
history
diff --git
a/mapec.c
b/mapec.c
index be3f62e19c9bb1839b5596c6f6f189f59f2323b0..1cb875404ffade1cb0c7758ff385bbc77dc30c5d 100644
(file)
--- a/
mapec.c
+++ b/
mapec.c
@@
-410,11
+410,12
@@
int MAPEC_Receive_timeout (int fid, unsigned char *buffer, int maxlen, int ms)
VERBOSE (mapec, TRACE, PRINTF ("MAPEC_Receive_timeout\n"));
fd_set rfds;
- struct timeval tv = { 0, ms };
+ struct timeval tv = { 0, ms
* 1000
};
FD_ZERO (&rfds);
FD_SET (fid, &rfds);
int retval = select (fid + 1, &rfds, NULL, NULL, &tv);
+ VERBOSE (mapec, TRACE, PRINTF ("select: %d (%ld, %ld)\n", retval, tv.tv_sec, tv.tv_usec));
if (retval != 1) {
return retval;
}