[Webware-devel] EOFError when using mod_webkit2

2009-01-20 Thread Jehiah Czebotar
I'm in the process of upgrading to Webware 1.0 and when i'm trying use
use webkit (via mod_webkit2) i get this error

File /usr/local/Webware/WebKit/ThreadedAppServer.py, line 916, in receiveDict
return loads(chunk)
EOFError: EOF read where object expected

I am only having this problem on some machines but i haven't been able
to narrow down what is causing it. All configurations and libraries
seem to be the same.

If anyone on this list has any suggestions I'd appreciate it.

-- 
Jehiah
http://jehiah.cz/

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel


Re: [Webware-devel] EOFError when using mod_webkit2

2009-01-20 Thread Jason Hildebrand
Hi Jehiah,

Is this happening on some requests (occasionally), or on every request?

If only occasionally, it's possible that some network tool or software is 
connecting directly to your appserver (on port 8080 or whatever you are using), 
and that the request is not coming via Apache.  I've seen this happen; the 
solution is to firewall the appserver port so that is it only accessible on 
localhost (assuming apache and webware are running on the same host).

peace,
Jason

--
Jason Hildebrand
PeaceWorks Computer Consulting
#2 - 396 Assiniboine Ave, Winnipeg
204 480 0314   --or--   519 725 7875, ext 620.

- Jehiah Czebotar jeh...@gmail.com wrote:

 I'm in the process of upgrading to Webware 1.0 and when i'm trying
 use
 use webkit (via mod_webkit2) i get this error
 
 File /usr/local/Webware/WebKit/ThreadedAppServer.py, line 916, in
 receiveDict
 return loads(chunk)
 EOFError: EOF read where object expected
 
 I am only having this problem on some machines but i haven't been
 able
 to narrow down what is causing it. All configurations and libraries
 seem to be the same.
 
 If anyone on this list has any suggestions I'd appreciate it.
 
 -- 
 Jehiah
 http://jehiah.cz/
 
 --
 This SF.net email is sponsored by:
 SourcForge Community
 SourceForge wants to tell your story.
 http://p.sf.net/sfu/sf-spreadtheword
 ___
 Webware-devel mailing list
 Webware-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/webware-devel

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel


[Webware-devel] [ webware-Bugs-2524767 ] bug in ThreadedAppServer handling data across multiple packe

2009-01-20 Thread SourceForge.net
Bugs item #2524767, was opened at 2009-01-20 21:34
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=104866aid=2524767group_id=4866

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: WebKit
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Jehiah Czebotar (jehiah)
Assigned to: Nobody/Anonymous (nobody)
Summary: bug in ThreadedAppServer handling data across multiple packe

Initial Comment:
ThreadedAppServer.py has a bug in the way it keeps track of the number of 
missing bytes when it reads from a socket. This bug is only apparent when using 
webkit via mod_webkit2 on a *different* host than apache. (ie: when on 
localhost all data appears to be available immediately, there needs to be some 
delay between when the packets arrive).

the count of # of bytes remaining to be read is decremented by all the bytes 
read previously instead of just the # of bytes read during the current loop

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detailatid=104866aid=2524767group_id=4866

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel


Re: [Webware-devel] EOFError when using mod_webkit2

2009-01-20 Thread Jehiah Czebotar
Thanks for the ideas Jason, i actually just nailed the problem (after
troubleshooting along with a few other people for a few days)

I opened this bug for it (with a patch attached)

https://sourceforge.net/tracker2/?func=detailaid=2524767group_id=4866atid=104866

It's a problem in ThreadedAppServer keeping track of the # of bytes
remaining to be read from the socket, which is only apparent when
there is some delay in receiving data. (which for me means when webkit
and apache are on different servers). So that also explains why it was
intermittent.

--
Jehiah
http://jehiah.cz/

On Tue, Jan 20, 2009 at 3:58 PM, Jason Hildebrand ja...@peaceworks.ca wrote:
 Hi Jehiah,

 Is this happening on some requests (occasionally), or on every request?

 If only occasionally, it's possible that some network tool or software is 
 connecting directly to your appserver (on port 8080 or whatever you are 
 using), and that the request is not coming via Apache.  I've seen this 
 happen; the solution is to firewall the appserver port so that is it only 
 accessible on localhost (assuming apache and webware are running on the same 
 host).

 peace,
 Jason

 --
 Jason Hildebrand
 PeaceWorks Computer Consulting
 #2 - 396 Assiniboine Ave, Winnipeg
 204 480 0314   --or--   519 725 7875, ext 620.

 - Jehiah Czebotar jeh...@gmail.com wrote:

 I'm in the process of upgrading to Webware 1.0 and when i'm trying
 use
 use webkit (via mod_webkit2) i get this error

 File /usr/local/Webware/WebKit/ThreadedAppServer.py, line 916, in
 receiveDict
 return loads(chunk)
 EOFError: EOF read where object expected

 I am only having this problem on some machines but i haven't been
 able
 to narrow down what is causing it. All configurations and libraries
 seem to be the same.

 If anyone on this list has any suggestions I'd appreciate it.

 --
 Jehiah
 http://jehiah.cz/


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel


Re: [Webware-devel] EOFError when using mod_webkit2

2009-01-20 Thread Christoph Zwerschke
Jason Hildebrand schrieb:
 If only occasionally, it's possible that some network tool or 
 software is connecting directly to your appserver (on port 8080 or 
 whatever you are using), and that the request is not coming via 
 Apache. I've seen this happen; the solution is to firewall the
 appserver port so that is it only accessible on localhost (assuming
 apache and webware are running on the same host).

You can also restrict access by setting Host = 'localhost' in 
AppServer.config (which is the default).

Is there anything visible in the log when the request happens?

-- Christoph


--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel