I have inherited a squid proxy (using no caching) that has a custom Java redirector with the following process:

request to squid > redirector checks is URL allowed for requester > if ok then rewite url (prefix with a few characters) and send URL string to another system in the workflow.

However the requested urls are being presented to the next system a bit mixed up.

e.g.

user request http://www.google.com/search.gif    >> should send /404.html
user request http://wap.res.com/asset.gif >> should send /valid/wap.res.com/asset.gif
<thousands more requests>

however the following is happening to < 1% of requests


user request http://www.google.com/search.gif >> is sending /valid/wap.res.com/asset.gif user request http://wap.res.com/asset.gif >> should send /valid/wap.res.com/search.gif

also the redirector may take in multiple requests and simply mix the order up!

Can anyone tell me why this is happening? I have read that squid redirectors should NOT use buffered I/O but not details as to why this is the case? Can anyone tell me why this is the case and give details?

Thanks in advance.

PS I cannot post source as this is commercial.  Sorry :-(


Reply via email to