/[monit]/monit/socket.c
ViewVC logotype

Diff of /monit/socket.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.50 by hauk, Sat Oct 29 15:36:59 2005 UTC revision 1.51 by hauk, Sun Oct 30 01:22:53 2005 UTC
# Line 591  static int fill(Socket_T S) { Line 591  static int fill(Socket_T S) {
591        
592    S->offset= 0;    S->offset= 0;
593    S->length= 0;    S->length= 0;
594      /* Optimizing, assuming a request/response pattern and that a udp_write
595         was issued before we are called, we don't have to wait for data */
596      if(S->type==SOCK_DGRAM) timeout= 0;
597        
598    /* Read as much as we can, but only block on the first read */    /* Read as much as we can, but only block on the first read */
599    while(TRUE) {    while(TRUE) {

Legend:
Removed from v.1.50  
changed lines
  Added in v.1.51

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26