IUBio Biosequences .. Software .. Molbio soft .. Network News .. FTP

unresolved bug on OSF1 3.0

Jeroen Coppieters jecop at ebi.ac.uk
Wed Apr 19 03:40:38 EST 1995


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] ...
: Jeroen
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 
setbuf(stdout,NULL);
to the main() routine of wgetz. 
This seems to solve the problem.

Jeroen
--
==============================================================
         . 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
http://www.ebi.ac.uk
==============================================================




More information about the Bio-srs mailing list

Send comments to us at biosci-help [At] net.bio.net