LINUX.ORG.RU

История изменений

Исправление abr_linux, (текущая версия) :

Вот запрос:

2013/03/23 22:51:54.750| cleaning hdr: 0x7fffdf252890 owner: 2
2013/03/23 22:51:54.750| destroying entry 0x7f0b6928d700: 'Host: t.example.com'
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932ef90: 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 F$
2013/03/23 22:51:54.750| destroying entry 0x7f0b693637a0: 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932d230: 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3'
2013/03/23 22:51:54.750| destroying entry 0x7f0b69344570: 'Accept-Encoding: gzip, deflate'
2013/03/23 22:51:54.750| destroying entry 0x7f0b69345d00: 'Cookie: __utma=40218045.1150214936.1364064143.1364064143.1364064143.1; __utmb$
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932d2d0: 'Pragma: no-cache'
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932fe60: 'Via: 1.1 localhost (squid/3.1.20)'
2013/03/23 22:51:54.750| destroying entry 0x7f0b69360170: 'X-Forwarded-For: 127.0.0.1'
2013/03/23 22:51:54.750| destroying entry 0x7f0b69305bd0: 'Cache-Control: no-cache'
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932ed70: 'Connection: keep-alive'
2013/03/23 22:51:54.750| cleaning hdr: 0x7fffdf252890 owner: 2
2013/03/23 22:51:54.750| httpSendRequest: FD 10:
GET / HTTP/1.1
Host: t.example.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Cookie: __utma=40218045.1150214936.1364064143.1364064143.1364064143.1; __utmb=40218045.1.10.1364064143; __utmc=40218045; __utmz=40218045$
Pragma: no-cache
Via: 1.1 localhost (squid/3.1.20)
X-Forwarded-For: 127.0.0.1
Cache-Control: no-cache
Connection: keep-alive


2013/03/23 22:51:54.750| comm_write: FD 10: sz 615: asynCall 0x7f0b69349320*1
2013/03/23 22:51:54.750| commSetSelect(FD 10,type=2,handler=1,client_data=0x7f0b61a13458,timeout=0)
2013/03/23 22:51:54.750| leaving SomeCommConnectHandler(FD 10, data=0x7f0b68f59008, lookup_wait=275)
2013/03/23 22:51:54.750| cbdataUnlock: 0x7f0b68f59008=2
2013/03/23 22:51:54.750| Engine 0x7fffdf252f40 is idle.
2013/03/23 22:51:54.750| Engine 0x7fffdf252f00 is idle.

Вот ответ:

2013/03/23 22:51:54.815| ctx: enter level  0: 'http://t.example.com/'
2013/03/23 22:51:54.815| processReplyHeader: key '202C61692C19B639E15785AB1A5E2434'
2013/03/23 22:51:54.815| init-ing hdr: 0x7f0b6921b980 owner: 3
2013/03/23 22:51:54.815| 0x7f0b6921b980 lookup for 41
2013/03/23 22:51:54.815| 0x7f0b6921b980 lookup for 9
2013/03/23 22:51:54.816| 0x7f0b6921b980 lookup for 23
2013/03/23 22:51:54.816| parsing hdr: (0x7f0b6921b980)
Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/
2013/03/23 22:51:54.816| WARNING: HTTP header contains NULL characters {Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/}
NULL
{Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/
2013/03/23 22:51:54.816| cleaning hdr: 0x7f0b6921b980 owner: 3
2013/03/23 22:51:54.816| init-ing hdr: 0x7fffdf252b50 owner: 3
2013/03/23 22:51:54.816| cleaning hdr: 0x7fffdf252b50 owner: 3
2013/03/23 22:51:54.816| cbdataFree: 0x7f0b69346f58
2013/03/23 22:51:54.816| cbdataFree: Freeing 0x7f0b69346f58
2013/03/23 22:51:54.816| cleaning hdr: 0x7f0b6921b980 owner: 3
2013/03/23 22:51:54.816| 0x7f0b6921b980 lookup for 41
2013/03/23 22:51:54.816| 0x7f0b6921b980 lookup for 9
2013/03/23 22:51:54.816| 0x7f0b6921b980 lookup for 23
2013/03/23 22:51:54.816| HttpMsg::parse: cannot parse isolated headers in 'HTTP/1.1 200 OK
Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/'
2013/03/23 22:51:54.816| processReplyHeader: Non-HTTP-compliant header: 'HTTP/1.1 200 OK
Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/'
2013/03/23 22:51:54.816| Server.cc(139) setVirginReply: 0x7f0b68bb7bc8 setting virgin reply to 0x7f0b6921b970
2013/03/23 22:51:54.816| StoreEntry::replaceHttpReply: http://t.example.com/

То есть, в етой строке глюк:

Set-Cookie: PHPSession=1;path=/

Ето запрос на сайт без php

Исходная версия abr_linux, :

Вот запрос:

2013/03/23 22:51:54.750| cleaning hdr: 0x7fffdf252890 owner: 2
2013/03/23 22:51:54.750| destroying entry 0x7f0b6928d700: 'Host: example.com'
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932ef90: 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 F$
2013/03/23 22:51:54.750| destroying entry 0x7f0b693637a0: 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932d230: 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3'
2013/03/23 22:51:54.750| destroying entry 0x7f0b69344570: 'Accept-Encoding: gzip, deflate'
2013/03/23 22:51:54.750| destroying entry 0x7f0b69345d00: 'Cookie: __utma=40218045.1150214936.1364064143.1364064143.1364064143.1; __utmb$
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932d2d0: 'Pragma: no-cache'
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932fe60: 'Via: 1.1 localhost (squid/3.1.20)'
2013/03/23 22:51:54.750| destroying entry 0x7f0b69360170: 'X-Forwarded-For: 127.0.0.1'
2013/03/23 22:51:54.750| destroying entry 0x7f0b69305bd0: 'Cache-Control: no-cache'
2013/03/23 22:51:54.750| destroying entry 0x7f0b6932ed70: 'Connection: keep-alive'
2013/03/23 22:51:54.750| cleaning hdr: 0x7fffdf252890 owner: 2
2013/03/23 22:51:54.750| httpSendRequest: FD 10:
GET / HTTP/1.1
Host: example.com
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Cookie: __utma=40218045.1150214936.1364064143.1364064143.1364064143.1; __utmb=40218045.1.10.1364064143; __utmc=40218045; __utmz=40218045$
Pragma: no-cache
Via: 1.1 localhost (squid/3.1.20)
X-Forwarded-For: 127.0.0.1
Cache-Control: no-cache
Connection: keep-alive


2013/03/23 22:51:54.750| comm_write: FD 10: sz 615: asynCall 0x7f0b69349320*1
2013/03/23 22:51:54.750| commSetSelect(FD 10,type=2,handler=1,client_data=0x7f0b61a13458,timeout=0)
2013/03/23 22:51:54.750| leaving SomeCommConnectHandler(FD 10, data=0x7f0b68f59008, lookup_wait=275)
2013/03/23 22:51:54.750| cbdataUnlock: 0x7f0b68f59008=2
2013/03/23 22:51:54.750| Engine 0x7fffdf252f40 is idle.
2013/03/23 22:51:54.750| Engine 0x7fffdf252f00 is idle.

Вот ответ:

2013/03/23 22:51:54.815| ctx: enter level  0: 'http://example.com/'
2013/03/23 22:51:54.815| processReplyHeader: key '202C61692C19B639E15785AB1A5E2434'
2013/03/23 22:51:54.815| init-ing hdr: 0x7f0b6921b980 owner: 3
2013/03/23 22:51:54.815| 0x7f0b6921b980 lookup for 41
2013/03/23 22:51:54.815| 0x7f0b6921b980 lookup for 9
2013/03/23 22:51:54.816| 0x7f0b6921b980 lookup for 23
2013/03/23 22:51:54.816| parsing hdr: (0x7f0b6921b980)
Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/
2013/03/23 22:51:54.816| WARNING: HTTP header contains NULL characters {Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/}
NULL
{Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/
2013/03/23 22:51:54.816| cleaning hdr: 0x7f0b6921b980 owner: 3
2013/03/23 22:51:54.816| init-ing hdr: 0x7fffdf252b50 owner: 3
2013/03/23 22:51:54.816| cleaning hdr: 0x7fffdf252b50 owner: 3
2013/03/23 22:51:54.816| cbdataFree: 0x7f0b69346f58
2013/03/23 22:51:54.816| cbdataFree: Freeing 0x7f0b69346f58
2013/03/23 22:51:54.816| cleaning hdr: 0x7f0b6921b980 owner: 3
2013/03/23 22:51:54.816| 0x7f0b6921b980 lookup for 41
2013/03/23 22:51:54.816| 0x7f0b6921b980 lookup for 9
2013/03/23 22:51:54.816| 0x7f0b6921b980 lookup for 23
2013/03/23 22:51:54.816| HttpMsg::parse: cannot parse isolated headers in 'HTTP/1.1 200 OK
Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/'
2013/03/23 22:51:54.816| processReplyHeader: Non-HTTP-compliant header: 'HTTP/1.1 200 OK
Server: nginx
Date: Sat, 23 Mar 2013 18:51:52 GMT
Content-Type: text/html
Content-Length: 612
Connection: keep-alive
ETag: "50ee84d5-264"
Set-Cookie: PHPSession=1;path=/'
2013/03/23 22:51:54.816| Server.cc(139) setVirginReply: 0x7f0b68bb7bc8 setting virgin reply to 0x7f0b6921b970
2013/03/23 22:51:54.816| StoreEntry::replaceHttpReply: http://example.com/

То есть, в етой строке глюк:

Set-Cookie: PHPSession=1;path=/