Hello I am using the mod to protect the downloading of archives.
When a user makes an order of a file, the mod is connected
satisfactorily to the data base, verifies the user and he qualifies
the downloading. The problem is that after making this verification
it does not close coneccion with the server, leaving it activates
it until the file downloads or cancels. I have proven setting KeepAlive
in Off and On, and I did not have success.
I want to know if somebody has had east problem and could find solution.
The mod I am using it in 3 different servers and in all it happens to me the same.
I thank for any aid to them that can give me.
Thank you very much! Rodrigo Munoz
(Text translated with Babel Fish)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When you request a page with your browser, it may result in several http requests, each of which requires authorization. For instance - if you request a page with three images, there will be at least four requests to the server - one for the page itself and one for each of the images.
Disconnecting after each request would mean we would need to connect and disconnect four times - a significant overhead. Rather, we perform the disconnect during cleanup only. Therefore, there is one connect, four authorization requests, and one disconnect.
Apache calls our cleanup routine after all requests for the page are completed. In the case of a file download, this is after the download is completed. It may mean a long delay before the disconnect occurs, especially if it's a large file over a modem. But the alternative would incur significant overhead on the server. And we are looking for other ways to cut down the amount of overhead.
I hope this clarifies why it works this way.
Jerry
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello I am using the mod to protect the downloading of archives.
When a user makes an order of a file, the mod is connected
satisfactorily to the data base, verifies the user and he qualifies
the downloading. The problem is that after making this verification
it does not close coneccion with the server, leaving it activates
it until the file downloads or cancels. I have proven setting KeepAlive
in Off and On, and I did not have success.
I want to know if somebody has had east problem and could find solution.
The mod I am using it in 3 different servers and in all it happens to me the same.
I thank for any aid to them that can give me.
Thank you very much! Rodrigo Munoz
(Text translated with Babel Fish)
Rodrigo,
This is correct operation.
When you request a page with your browser, it may result in several http requests, each of which requires authorization. For instance - if you request a page with three images, there will be at least four requests to the server - one for the page itself and one for each of the images.
Disconnecting after each request would mean we would need to connect and disconnect four times - a significant overhead. Rather, we perform the disconnect during cleanup only. Therefore, there is one connect, four authorization requests, and one disconnect.
Apache calls our cleanup routine after all requests for the page are completed. In the case of a file download, this is after the download is completed. It may mean a long delay before the disconnect occurs, especially if it's a large file over a modem. But the alternative would incur significant overhead on the server. And we are looking for other ways to cut down the amount of overhead.
I hope this clarifies why it works this way.
Jerry
Thanks you, Jerry!!
Rodrigo.-