Thanks,
Sherif
by the way logic and code are Ok
Originally posted by Ulf Dittmer:
That being the case, are you saying that the correct (updated) results are written to the file (and that you have verified that), but then the old (no longer existing) file is served to the client?
What is the HTTP response status when a request for an updated file comes in, but an outdated version is served?
Thanks,
Sherif
in the both cases the files wwere written successfully
Originally posted by Ulf Dittmer:
OK, so it's not that the old data is served INSTEAD of the updated data, it's that BOTH data sets are shown; is that correct? If so, I would say that this statement
is not correct, since in the second case it seems that data is appended to the file, instead of overwriting it.
Have you checked the file on the server (instead of accessing it from the browser), to see what it actually contains?
Thanks,
Sherif
Thanks,
Sherif
Thanks,
Sherif
Originally posted by Ulf Dittmer:
I don't know what else to say beyond my last post. If the code is creating a file that contains data it shouldn't contain, then it seems there is something wrong with the code that creates the file.
So, one again: how are you creating the file? How can you make sure that the logic is correct? How can you make sure that there are no multithreading issues?
Thanks,
Sherif
Thanks,
Sherif
Consider Paul's rocket mass heater. |