Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Resets have proved their worth.... always turn them on.

  • Loading branch information...
commit 83ffd6170a771a1b8e7434d1866840cab5bd5eab 1 parent 986269c
authored December 30, 2011

Showing 1 changed file with 0 additions and 10 deletions. Show diff stats Hide diff stats

  1. 10  http.c
10  http.c
@@ -9,11 +9,6 @@
9 9
  *   - rudimentary https support
10 10
  */
11 11
 
12  
-/* I am still not 100% certain this is a good idea. So I am leaving it
13  
- * turned off by default.
14  
- */
15  
-#define WANT_RESETS
16  
-
17 12
 #ifdef _WIN32
18 13
 /* #define errno WSAGetLastError() */
19 14
 #define EINPROGRESS WSAEWOULDBLOCK
@@ -126,7 +121,6 @@ static int fail_redirect(struct connection *conn)
126 121
 /* Reset connection - try again */
127 122
 int reset_connection(struct connection *conn)
128 123
 {
129  
-#ifdef WANT_RESETS
130 124
 	++conn->reset;
131 125
 	if (conn->reset == 1)
132 126
 		++resets; /* only count each connection once */
@@ -137,10 +131,6 @@ int reset_connection(struct connection *conn)
137 131
 
138 132
 	if (build_request(conn))
139 133
 		return fail_connection(conn);
140  
-#else
141  
-	printf("Read error %s: %d\n", conn->url, errno);
142  
-	fail_connection(conn);
143  
-#endif
144 134
 
145 135
 	return 0;
146 136
 }

0 notes on commit 83ffd61

Please sign in to comment.
Something went wrong with that request. Please try again.