/[monit]/monit/http/processor.c
ViewVC logotype

Diff of /monit/http/processor.c

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

revision 1.21 by hauk, Thu Sep 11 02:49:06 2003 UTC revision 1.22 by hauk, Thu Sep 18 17:42:49 2003 UTC
# Line 765  static HttpRequest create_HttpRequest(Re Line 765  static HttpRequest create_HttpRequest(Re
765                       "Cannot create inputstream");                       "Cannot create inputstream");
766        return NULL;        return NULL;
767                
768        } else {
769          setvbuf(in, NULL, _IONBF, 0);
770      }      }
771            
772      if(fgets(line, sizeof(line), in) == NULL) {      if(fgets(line, sizeof(line), in) == NULL) {
# Line 842  static HttpResponse create_HttpResponse( Line 844  static HttpResponse create_HttpResponse(
844    if(! Run.httpdssl) {    if(! Run.httpdssl) {
845    
846      out = fdopen(dup(W->socket), "w");      out = fdopen(dup(W->socket), "w");
   
847      if(out == NULL) {      if(out == NULL) {
848            
849        internal_error(W->socket, SC_INTERNAL_SERVER_ERROR,        internal_error(W->socket, SC_INTERNAL_SERVER_ERROR,
850                       "Cannot create outputstream");                       "Cannot create outputstream");
851                
852        return NULL;        return NULL;
853        } else {
854          setvbuf(out, NULL, _IONBF, 0);
855      }      }
856    
857    }    }

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

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