Lines 48-53
Link Here
|
48 |
#include "ESI.h" |
48 |
#include "ESI.h" |
49 |
#endif |
49 |
#endif |
50 |
#include "MemObject.h" |
50 |
#include "MemObject.h" |
|
|
51 |
#include "fde.h" |
51 |
#include "ACLChecklist.h" |
52 |
#include "ACLChecklist.h" |
52 |
#include "ACL.h" |
53 |
#include "ACL.h" |
53 |
#if DELAY_POOLS |
54 |
#if DELAY_POOLS |
Lines 1549-1554
Link Here
|
1549 |
/* guarantee nothing has been sent yet! */ |
1550 |
/* guarantee nothing has been sent yet! */ |
1550 |
assert(http->out.size == 0); |
1551 |
assert(http->out.size == 0); |
1551 |
assert(http->out.offset == 0); |
1552 |
assert(http->out.offset == 0); |
|
|
1553 |
if (Config.zph_tos_local) |
1554 |
{ |
1555 |
debugs(33, 1, "ZPH hit hier.code=" << http->request->hier.code <<" TOS="<<Config.zph_tos_local); |
1556 |
comm_set_tos(http->getConn()->fd,Config.zph_tos_local); |
1557 |
} |
1552 |
tempBuffer.offset = reqofs; |
1558 |
tempBuffer.offset = reqofs; |
1553 |
tempBuffer.length = getNextNode()->readBuffer.length; |
1559 |
tempBuffer.length = getNextNode()->readBuffer.length; |
1554 |
tempBuffer.data = getNextNode()->readBuffer.data; |
1560 |
tempBuffer.data = getNextNode()->readBuffer.data; |
Lines 1829-1834
Link Here
|
1829 |
char *buf = next()->readBuffer.data; |
1835 |
char *buf = next()->readBuffer.data; |
1830 |
|
1836 |
|
1831 |
char *body_buf = buf; |
1837 |
char *body_buf = buf; |
|
|
1838 |
|
1839 |
if (reqofs==0 && !logTypeIsATcpHit(http->logType)) |
1840 |
{ |
1841 |
int tos = 0; |
1842 |
if (Config.zph_tos_peer && |
1843 |
(http->request->hier.code==SIBLING_HIT || |
1844 |
(Config.onoff.zph_tos_parent && http->request->hier.code==PARENT_HIT))) |
1845 |
{ |
1846 |
tos = Config.zph_tos_peer; |
1847 |
debugs(33, 1, "ZPH: Peer hit, TOS="<<tos<<" hier.code="<<http->request->hier.code); |
1848 |
} |
1849 |
else if (Config.onoff.zph_preserve_miss_tos && Config.zph_preserve_miss_tos_mask) |
1850 |
{ |
1851 |
tos = fd_table[fd].upstreamTOS & Config.zph_preserve_miss_tos_mask; |
1852 |
debugs(33, 1, "ZPH: Preserving TOS on miss, TOS="<<tos); |
1853 |
} |
1854 |
comm_set_tos(fd,tos); |
1855 |
} |
1832 |
|
1856 |
|
1833 |
if (buf != result.data) { |
1857 |
if (buf != result.data) { |
1834 |
/* we've got to copy some data */ |
1858 |
/* we've got to copy some data */ |