Re: 'premature end of script headers' error

Tom Ekberg <[email protected]>
Newsgroups gmane.comp.bug-tracking.roundup.user
Message-ID <[email protected]>
Bernhard,

I got thinking more about this and I'm not happy about my suggested fix. The problem was that a detector raised an exception. The try/except block that catches the exception should be in one of these two methods identified in the stack trace - fireReactors or react:

   File "/usr/local/lib/python2.7/site-packages/roundup/backends/rdbms_common.py", line 1723, in set
     self.fireReactors('set', nodeid, oldvalues)
   File "/usr/local/lib/python2.7/site-packages/roundup/hyperdb.py", line 1263, in fireReactors
     react(self.db, self, nodeid, oldvalues)

Doing this avoids the confusion with client disconnects and a detector error.

When I come up with a fix I'm happier with I'll look for John's tracker issue and attach a HG diff file to it, with some comments.

Tom Ekberg
Senior Computer Specialist, Lab Medicine
University of Washington Medical Center
1959 NE Pacific St, MS 357110
Seattle WA 98195
cell: (253) 561-2509
email: [email protected]

On Mon, 16 Dec 2013, Bernhard Reiter wrote:

> Hi Tom,
>
> On Friday 13 December 2013 at 23:02:59, Tom Ekberg wrote:
>> Here is the hg diff for client.py
>
> good to see that you've found your problem!
> Thanks for the improvement suggestion, I agree this is an improvement.
>
> As John has remarked: We should definately open an issue for the problem
> and then see if we can make a distinction between the two cases
> a) client disconnects, which seems to be a regular thing to happen for an
> internet service.
> b) a different IOError occurs (within Roundup)
>
> John, do you mind to open the ticket?
> Bernhard
> -- 
> www.intevation.de/~bernhard (CEO)    www.fsfe.org (Founding GA Member)
> Intevation GmbH, Osnabrück, Germany; Amtsgericht Osnabrück, HRB 18998
> Owned and run by Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner
>

------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk

_______________________________________________
Roundup-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/roundup-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.