[Nagiosplug-devel] [ nagiosplug-Bugs-734722 ] check_http reports error when server closes connection

SourceForge.net noreply at sourceforge.net
Thu May 8 09:04:15 CEST 2003


Bugs item #734722, was opened at 2003-05-08 10:57
Message generated for change (Comment added) made by awason
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=734722&group_id=29880

Category: None
Group: CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Wason (awason)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_http reports error when server closes connection

Initial Comment:
The check_http plugin reports an error ("Error in recv()") 
if the web server closes the socket immediately after 
sending all data. check_http goes call recv() again and 
gets ECONNRESET.

In addition, if this happens when HAVE_SSL is defined, 
then check_http will segfault because the call to 
SSL_get_error is not protected by "if (use_ssl)".

A patch for both of these against check_http.c 1.32 is 
attached.

----------------------------------------------------------------------

>Comment By: Andrew Wason (awason)
Date: 2003-05-08 11:03

Message:
Logged In: YES 
user_id=247569

A simple Java HTTP server app is attached - it closes the 
socket immediately after serving the data to help duplicate 
the problem. It listens on port 8911, so use "check_http -I 
xx.xx.xx.xx -p 8911  -u /"

You will probably need to run it on a separate box from where 
you run check_http due to the race condition in duplicating 
the bug.

javac Http.java
java Http

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=734722&group_id=29880




More information about the Devel mailing list