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

Diff of /monit/protocols/http.c

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

revision 1.13 by hauk, Fri Sep 6 18:13:37 2002 UTC revision 1.14 by chopp, Wed Sep 25 14:54:49 2002 UTC
# Line 88  int check_http(Port_T p) { Line 88  int check_http(Port_T p) {
88             p->request?p->request:"/",             p->request?p->request:"/",
89             get_host_header(p, host), prog, VERSION);             get_host_header(p, host), prog, VERSION);
90    
91    if (sock_send(p->socket, request, strlen(request), 0) < 0) {    if (port_send(p, request, strlen(request), 0) < 0) {
92      log("HTTP: error sending data -- %s\n", STRERROR);      log("HTTP: error sending data -- %s\n", STRERROR);
93      return FALSE;      return FALSE;
94    }    }
95        
96    if (sock_recv(p->socket, buf, sizeof(buf), 0) <= 0) {    if (port_recv(p, buf, sizeof(buf), 0) <= 0) {
97      log("HTTP: error receiving data -- %s\n", STRERROR);      log("HTTP: error receiving data -- %s\n", STRERROR);
98      return FALSE;      return FALSE;
99    }    }

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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