You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by wr...@apache.org on 2001/07/19 06:29:58 UTC
cvs commit: apr/network_io/win32 poll.c
wrowe 01/07/18 21:29:58
Modified: network_io/win32 poll.c
Log:
It's really evil to keep accumulating 256 byte chunks out of the pollfd :(
Revision Changes Path
1.27 +3 -2 apr/network_io/win32/poll.c
Index: poll.c
===================================================================
RCS file: /home/cvs/apr/network_io/win32/poll.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- poll.c 2001/03/31 12:42:46 1.26
+++ poll.c 2001/07/19 04:29:58 1.27
@@ -148,14 +148,15 @@
{
apr_int16_t revents = 0;
WSABUF data;
+ char buf[256];
int dummy;
int flags = MSG_PEEK;
/* We just want to PEEK at the data, so I am setting up a dummy WSABUF
* variable here.
*/
- data.len = 256;
- data.buf = (char *)apr_palloc(aprset->cntxt, 256);
+ data.len = sizeof(buf);
+ data.buf = buf;
if (FD_ISSET(sock->sock, aprset->read)) {
revents |= APR_POLLIN;