Changeset 79eb6e21 in rtems


Ignore:
Timestamp:
03/07/06 21:37:35 (18 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Children:
5b07faf
Parents:
5b78cd6
Message:

2006-03-07 Paul Whitfield <paulw@…>

PR 843/rtems_misc

  • rtems_webserver/socket.c: There is a memory corruption problem in the selectSocket function in the web server, this only become apparent if you disable the built in memory allocation functions. I have disabled the internal memory management to get file upload working.
Location:
c/src/libnetworking
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/libnetworking/ChangeLog

    r5b78cd6 r79eb6e21  
     12006-03-07      Paul Whitfield <paulw@omnitronics.com.au>
     2
     3        PR 843/rtems_misc
     4        * rtems_webserver/socket.c: There is a memory corruption problem in the
     5        selectSocket function in the web server, this only become apparent if
     6        you disable the built in memory allocation functions. I have disabled
     7        the internal memory management to get file upload working.
     8
    192006-02-08      Thomas Rauscher  <trauscher@loytec.com>
    210
  • c/src/libnetworking/rtems_webserver/socket.c

    r5b78cd6 r79eb6e21  
    603603 */
    604604
    605 #if WIN || CE
     605#if WIN || CE || __rtems__
    606606
    607607int socketSelect(int sid, int timeout)
     
    611611        fd_set                  readFds, writeFds, exceptFds;
    612612        int                     nEvents;
    613         int                             all, socketHighestFd;   /* Highest socket fd opened */
     613        int                             all;
     614#if WIN || CE
     615    int  socketHighestFd;       /* Highest socket fd opened */
     616        socketHighestFd = -1;
     617#endif     
    614618
    615619        FD_ZERO(&readFds);
    616620        FD_ZERO(&writeFds);
    617621        FD_ZERO(&exceptFds);
    618         socketHighestFd = -1;
     622
    619623
    620624        tv.tv_sec = timeout / 1000;
     
    660664        }
    661665
     666#if WIN || CE     
    662667/*
    663668 *      Windows select() fails if no descriptors are set, instead of just sleeping
     
    668673                return 0;
    669674        }
    670 
     675#endif
     676   
    671677/*
    672678 *      Wait for the event or a timeout.
Note: See TracChangeset for help on using the changeset viewer.