Generate JS from RoR - strange delay with send_data

Witold Rugowski wrote:

Witold Rugowski wrote:
29 seconds ! Am I doing something wrong? My action looks like (I've removed real JS since it is not problem with generation of JS only with sending):
This is related somehow to WEBrick (which I was using as HTTP server) and squid proxy. For some reason there is something wrong with closing connection - connection closes only after timeout in WEBrick. I switched to lighttpd and all is working ok.

i don’t know if it would help, but you could
send a content-length header