[Bug 1081952] [NEW] squid 3.1.19 external_acl_type fail

2012-11-22 Thread sense
Public bug reported:

System: ubuntu 12.04.1
Squid: 3.1.19-1ubuntu3.12.04.1 (apt-get install)

In squid.conf:
...
external_acl_type testcom_ip ttl=0 children=5 ipv4 %SRC php 
/php/squid_eacl/test_ip.php
acl testcom_ipacl external testcom_ip
http_access allow testcom testcom_ipacl
http_access deny all
...

In the /php/squid_eacl/test_ip.php, I let it return OK everytime:
?php
$time=null;
$output=null;
while ($i = fopen('php://stdin', 'r')) { 
$ii = fgets($i);
$s = trim($ii);
fclose($i);
if ($s == NULL) {
if ($time == time()) {
break;
} else {
$time = time();
continue;
}
}
$o = fopen('php://stdout', 'w');
#fwrite($o,OK user=test\n);
fwrite($o,OK\n);
fclose($o);
}
?

Client use the Squid server as proxy and will get Access Deny many
time. It seems squid will miss the external_acl_type acl ( http_access
allow testcom testcom_ipacl)  of config.conf in sometime.

** Affects: squid3 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to squid3 in Ubuntu.
https://bugs.launchpad.net/bugs/1081952

Title:
  squid 3.1.19 external_acl_type fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1081952/+subscriptions

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs


[Bug 1081952] [NEW] squid 3.1.19 external_acl_type fail

2012-11-22 Thread sense
Public bug reported:

System: ubuntu 12.04.1
Squid: 3.1.19-1ubuntu3.12.04.1 (apt-get install)

In squid.conf:
...
external_acl_type testcom_ip ttl=0 children=5 ipv4 %SRC php 
/php/squid_eacl/test_ip.php
acl testcom_ipacl external testcom_ip
http_access allow testcom testcom_ipacl
http_access deny all
...

In the /php/squid_eacl/test_ip.php, I let it return OK everytime:
?php
$time=null;
$output=null;
while ($i = fopen('php://stdin', 'r')) { 
$ii = fgets($i);
$s = trim($ii);
fclose($i);
if ($s == NULL) {
if ($time == time()) {
break;
} else {
$time = time();
continue;
}
}
$o = fopen('php://stdout', 'w');
#fwrite($o,OK user=test\n);
fwrite($o,OK\n);
fclose($o);
}
?

Client use the Squid server as proxy and will get Access Deny many
time. It seems squid will miss the external_acl_type acl ( http_access
allow testcom testcom_ipacl)  of config.conf in sometime.

** Affects: squid3 (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1081952

Title:
  squid 3.1.19 external_acl_type fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/squid3/+bug/1081952/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs