apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: apr/network_io/win32 poll.c
Date Thu, 19 Jul 2001 04:29:58 GMT
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;
  
  
  

Mime
View raw message