@@ -1,27 +1,30 @@
--- keepalived/check/check_http.c.orig 2011-08-10 16:29:21.328399452 +0200
-+++ keepalived/check/check_http.c 2011-08-10 16:31:03.504652192 +0200
-@@ -885,5 +885,6 @@
- /* handle tcp connection status & register check worker thread */
- tcp_connection_state(fd, status, thread, http_check_thread,
- http_get_check->connection_to);
-+ close(fd);
- return 0;
- }
++++ keepalived/check/check_http.c 2011-08-10 16:40:20.262536921 +0200
+@@ -877,6 +877,7 @@
+
+ status = tcp_bind_connect(fd, &http_get_check->dst, &http_get_check->bindto);
+ if (status == connect_error) {
++ close(fd);
+ thread_add_timer(thread->master, http_connect_thread, checker,
+ checker->vs->delay_loop);
+ return 0;
--- keepalived/check/check_tcp.c.orig 2011-08-10 16:29:38.389119167 +0200
-+++ keepalived/check/check_tcp.c 2011-08-10 16:31:17.672652409 +0200
-@@ -183,5 +183,6 @@
- /* handle tcp connection status & register check worker thread */
- tcp_connection_state(fd, status, thread, tcp_check_thread,
- tcp_check->connection_to);
-+ close(fd);
- return 0;
- }
++++ keepalived/check/check_tcp.c 2011-08-10 16:40:32.882538123 +0200
+@@ -175,6 +175,7 @@
+
+ status = tcp_bind_connect(fd, &tcp_check->dst, &tcp_check->bindto);
+ if (status == connect_error) {
++ close(fd);
+ thread_add_timer(thread->master, tcp_connect_thread, checker,
+ checker->vs->delay_loop);
+ return 0;
--- keepalived/check/check_smtp.c.orig 2011-08-10 16:29:28.205173090 +0200
-+++ keepalived/check/check_smtp.c 2011-08-10 16:31:31.580652562 +0200
-@@ -826,5 +826,6 @@
++++ keepalived/check/check_smtp.c 2011-08-10 16:40:46.650537342 +0200
+@@ -819,6 +819,7 @@
- /* handle tcp connection status & register callback the next setp in the process */
- tcp_connection_state(sd, status, thread, smtp_check_thread, smtp_checker->timeout);
-+ close(sd);
- return 0;
- }
+ status = tcp_bind_connect(sd, &smtp_host->dst, &smtp_host->bindto);
+ if (status == connect_error) {
++ close(sd);
+ thread_add_timer(thread->master, smtp_connect_thread, checker,
+ checker->vs->delay_loop);
+ return 0;
|