Hi, for problems like that, I made many small fixes during this week to that part, and I am currently running very long tests. Are you using the latest relase? I hope not. Also, if you are already using the latest code, could you make sure that you are not reading past the end of the file? In the case everything seems ok from this point of view, can you please tell me how to reproduce the problem (even a trace of the read sequence you are performing would be ok) ? Fabrizio Gregory J. Sharp wrote: > Folks, > > For reasons not yet clear, I got an error reading a file and noticed > that at line 354 of src/XrdClient/XrdClient.cc there is an error > condition detected (error message is "Internal cache error") but then > you return 0, indicating EOF. Should you not rather return -1 > indicating an error? Why indicate EOF in this case? > > For the record, the error message I got was > > 050726 12:30:36 001 Xrd: ReadBuffer: Internal cache error. Original > req: [log in to unmask] Final req: 262144@431691220 > > The discrepancy between a read of 512 bytes and 262144 bytes troubles > me, but I may yet figure out how that came to be. The 468 byte > difference in the offsets is also confusing me. Sigh. > > -- > Gregory J. Sharp email: [log in to unmask] > Wilson Synchrotron Laboratory url: http://www.lepp.cornell.edu/ > ~gregor > Cornell University ph: +1 607 255 4882 > Ithaca, NY 14853 fax: +1 607 255 8062 >