Jeroen Coppieters (jecop at ebi.ac.uk) wrote:
: I have an error when retrieving a large swissprot entry from the EBI SRS
: server. I tried the same on the Sanger, Heidelberg, and Basel servers,
: and there everything works fine. So I guess this will be system dependent
: I run SRS4.04 on Alpha OSF1 rel 3.0.
: Does anyone else have the same configuration?
...[description deleted] ...
It was indeed OSF related. I finally tracked down the problem.
Reinhard hinted to httpd. So I had a look at that. From the log files I
found out that if data was truncated, it was truncated to multiples of
8192 bytes, which is the copy-buffer size used by httpd.
So httpd did not send the last, incomplete buffer.
After several tests, I found out that on OSF/1 stdout is not flushed on
termination of the program. So adding fflush(stdout) statements to
each printing routine could solve the problem. I did not want to scan through
the code and do this, so I made stdout unbuffered, by adding
to the main() routine of wgetz.
This seems to solve the problem.
. O . Jeroen Coppieters
. O O o O . Software Support
O O O O *o O O Jeroen.Coppieters at embl-ebi.ac.uk
O O O O( *o )O O (or jecop at ebi.ac.uk)
)O O O O o* O O( ++44 1223 494422
O O O O( o* )O O
)O O O O *o O O( EMBL Outstation EBI
O O O O( *o )O O (European Bioinformatics Institute)
)O @ O O o* O O( Hinxton Hall
O O O( o* )O(' Hinxton
` O( *o O ' Cambridge CB10 1RQ
` O ' UK