-
Notifications
You must be signed in to change notification settings - Fork 1
/
privoxy-3.0.28-mga-intika-shutup-no-answer.patch
50 lines (49 loc) · 1.87 KB
/
privoxy-3.0.28-mga-intika-shutup-no-answer.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
Index: privoxy-3.0.28-stable/jcc.c
===================================================================
--- privoxy-3.0.28-stable/jcc.c
+++ privoxy-3.0.28-stable/jcc.c
@@ -2156,7 +2156,7 @@
csp->config->socket_timeout, http->url);
if ((byte_count == 0) && (http->ssl == 0))
{
- send_crunch_response(csp, error_response(csp, "connection-timeout"));
+ //send_crunch_response(csp, error_response(csp, "connection-timeout"));
}
mark_server_socket_tainted(csp);
return;
@@ -2632,7 +2632,7 @@
log_error(LOG_LEVEL_ERROR,
"No server or forwarder response received on socket %d.",
csp->server_connection.sfd);
- send_crunch_response(csp, error_response(csp, "no-server-data"));
+ //send_crunch_response(csp, error_response(csp, "no-server-data"));
}
free_http_request(http);
mark_server_socket_tainted(csp);
@@ -2971,15 +2971,15 @@
if (fwd->type != SOCKS_NONE)
{
/* Socks error. */
- rsp = error_response(csp, "forwarding-failed");
+ //rsp = error_response(csp, "forwarding-failed");
}
else if (errno == EINVAL)
{
- rsp = error_response(csp, "no-such-domain");
+ //rsp = error_response(csp, "no-such-domain");
}
else
{
- rsp = error_response(csp, "connect-failed");
+ //rsp = error_response(csp, "connect-failed");
}
/* Write the answer to the client */
@@ -3024,7 +3024,7 @@
{
if (send_http_request(csp))
{
- rsp = error_response(csp, "connect-failed");
+ //rsp = error_response(csp, "connect-failed");
if (rsp)
{
send_crunch_response(csp, rsp);