RE: [Webware-discuss] sporatic error in SessionFileStore

2002-02-08 Thread Geoffrey Talvola

Clark wrote:
> Ok.  I've updated to the recent CVS snapshot today and 
> this problem seems to have gone away, but only time will
> tell.  However, I now have a small problem with the
> OneShot adapter and framesets.  When I do a refresh,
> one or two of the three frames in the frameset fail
> to recognize the session... thus, one or two of my
> pages show the log-in screen (what happens when the
> session expires).  This isn't such a bad bug, since
> I usually only debug one frame at a time with OneShot,
> and it seems to work well with the regular adapter.

I have similar problems with OneShot and pages that contain dynamically
generated images.  This problem has been in OneShot for a long time.  I just
avoid using OneShot when I'm developing pages with dynamic images :-)

The problem is that the session store assumes only one process is accessing
the session at a time, but when you're using OneShot, you can have multiple
processes stepping on each other.

The way to fix it would be to put some sort of mutex or file lock into
OneShot.cgi so that only one request is processed at a time.  Should be
easy, but I'm not sure if it can be done in a platform-independent way.

- Geoff

___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



RE: [Webware-discuss] Segmentation fault in ThreadedAppServer

2002-02-08 Thread Geoffrey Talvola

Matt Feifarek wrote:
> I'm having a problem with a servlet that has been very 
> difficult to debug.
> 
> We're using a python-wrapper to a C library to make Flash files
> (http://opaque.net/ming/, if you're interested).
> 
> It's working fine in python: we can create and modify flash 
> objects, output
> them, save them to disk, etc.
> 
> If we move the EXACT SAME CODE into a servlet, as soon as the 
> .output() or
> .save() methods are called, the ThreadedAppServer seg faults.
> 
> We thought that it might have something to do with threading, 
> but setting
> the .canBeThreaded() and .canBeReused() methods to either 1 
> or 0 didn't seem
> to make a difference.
> 
> Is there something special about Python running in a servlet 
> that would
> cause it to behave differently than straight interpreted or 
> executed python?
> 
> Any clues?
> 
> Thanks.

I would say it's very likely to be a threading problem.  Perhaps your module
only works when it's run on the main thread, or perhaps it fails if it gets
called on multiple different threads?

Try writing a short program that creates multiple threads using the
threading module, then makes calls to your library on those threads.  That
will simulate what Webware is doing.

- Geoff

___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



[Webware-discuss] production sites?

2002-02-08 Thread Gil Hauer

Does anyone have pointers to production sites using Webware?

Thanks,
Gil




___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



[Webware-discuss] Small Bug in htBodyArgs in Page.py

2002-02-08 Thread Christoph Zwerschke

In Page.py you should replace the line

 return 'color=black bgcolor=white'
with
 return 'text=black bgcolor=white'

There is no "color" attribute in the "body" tag.

Gtx
---
Christoph Zwerschke
Zentrale Universitaetsverwaltung Heidelberg Abt. 3.1-IuK


___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



Re: [Webware-discuss] production sites?

2002-02-08 Thread Matteo Bertini

Gil Hauer wrote:

>Does anyone have pointers to production sites using Webware?
>
>Thanks,
>Gil
>
I know only this:

http://www.vorbis.com/index.psp





___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



RE: [Webware-discuss] production sites?

2002-02-08 Thread Matt Feifarek

We're using it for several "Intranet" type projects, and one
soon-to-be-launched service:

www.foliospace.com/sample/

The "interesting" bits are all on the administration interface, which
requires an account and password, unfortunately. But, you can check out the
sample portfolio, if you like.

| -Original Message-
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED]]On Behalf Of Gil
| Hauer
| Sent: Friday, February 08, 2002 11:45 AM
| To: [EMAIL PROTECTED]
| Subject: [Webware-discuss] production sites?
|
|
| Does anyone have pointers to production sites using Webware?
|
| Thanks,
| Gil
|
|
|
|
| ___
| Webware-discuss mailing list
| [EMAIL PROTECTED]
| https://lists.sourceforge.net/lists/listinfo/webware-discuss


___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



Re: [Webware-discuss] Webware security

2002-02-08 Thread Ian Bicking

On Fri, 2002-02-08 at 02:15, Magnus Lie Hetland wrote:
> Ian Bicking <[EMAIL PROTECTED]>:
> >
> > On Thu, 2002-02-07 at 06:46, Magnus Lie Hetland wrote:
> ...
> > > file ending? (Adding them to the endings-to-ignore list doesn't do any
> > > good...)
> > 
> > WebKit/Configs/Application.config: ExtensionsToIgnore
> 
> I'm not sure you read the sentence you replied to here... I just said
> that using this doesn't do anything good -- it just avoids conflicts
> when serving files with the same base name.
>
> > I think there's some more options in CVS Webware (as to how hard you
> > hide the files) -- they'll all be in that same config file.
> 
> OK. I use 0.9.9 from the standard dist. Didn't find anything there.
> Oh, well.

Then it must only be in the CVS version.  Tavis made a patch, and I'm
pretty sure Geoff said he applied it.

  Ian




___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



RE: [Webware-discuss] production sites?

2002-02-08 Thread Ian Bicking

On Fri, 2002-02-08 at 11:50, Matt Feifarek wrote:
> We're using it for several "Intranet" type projects, and one
> soon-to-be-launched service:
> 
> www.foliospace.com/sample/

maybe you mean http://www.foliospace.com/about/sample/ ?

If you want to go semi-public with it (just to people interested in
Webware) be sure to post it to:
http://webware.colorstudy.net/twiki/bin/view/Webware/WhoIsUsingWebware



> 
> The "interesting" bits are all on the administration interface, which
> requires an account and password, unfortunately. But, you can check out the
> sample portfolio, if you like.
> 
> | -Original Message-
> | From: [EMAIL PROTECTED]
> | [mailto:[EMAIL PROTECTED]]On Behalf Of Gil
> | Hauer
> | Sent: Friday, February 08, 2002 11:45 AM
> | To: [EMAIL PROTECTED]
> | Subject: [Webware-discuss] production sites?
> |
> |
> | Does anyone have pointers to production sites using Webware?
> |
> | Thanks,
> | Gil
> |
> |
> |
> |
> | ___
> | Webware-discuss mailing list
> | [EMAIL PROTECTED]
> | https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 
> 
> ___
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 



___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



Re: [Webware-discuss] production sites?

2002-02-08 Thread Ian Bicking

See:
http://webware.colorstudy.net/twiki/bin/view/Webware/WhoIsUsingWebware

On Fri, 2002-02-08 at 10:44, Gil Hauer wrote:
> Does anyone have pointers to production sites using Webware?
> 
> Thanks,
> Gil
> 
> 
> 
> 
> ___
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss
> 



___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



RE: [Webware-discuss] production sites?

2002-02-08 Thread Matt Feifarek

| maybe you mean http://www.foliospace.com/about/sample/ ?

I guess I mean www.foliospace.com/sample

The rewrite stuff is so picky. I had better fix that.

| If you want to go semi-public with it (just to people interested in
| Webware) be sure to post it to:
| http://webware.colorstudy.net/twiki/bin/view/Webware/WhoIsUsingWebware

Will do, once we fix more bugs. I wanted to reply before this question got
stale.


___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



RE: [Webware-discuss] Webware security

2002-02-08 Thread Geoffrey Talvola

Ian Bicking wrote:
> On Fri, 2002-02-08 at 02:15, Magnus Lie Hetland wrote:
> > Ian Bicking <[EMAIL PROTECTED]>:
> > >
> > > On Thu, 2002-02-07 at 06:46, Magnus Lie Hetland wrote:
> > ...
> > > > file ending? (Adding them to the endings-to-ignore list 
> doesn't do any
> > > > good...)
> > > 
> > > WebKit/Configs/Application.config: ExtensionsToIgnore
> > 
> > I'm not sure you read the sentence you replied to here... I 
> just said
> > that using this doesn't do anything good -- it just avoids conflicts
> > when serving files with the same base name.
> >
> > > I think there's some more options in CVS Webware (as to 
> how hard you
> > > hide the files) -- they'll all be in that same config file.
> > 
> > OK. I use 0.9.9 from the standard dist. Didn't find anything there.
> > Oh, well.
> 
> Then it must only be in the CVS version.  Tavis made a patch, and I'm
> pretty sure Geoff said he applied it.
> 

Yes, this is only in CVS.

I'm going to cut a new Webware release later this month but if you can't
wait until then, I'd recommend using CVS.

- Geoff

___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



RE: [Webware-discuss] XMLRPCServer problem (maybe)

2002-02-08 Thread Geoffrey Talvola

Magnus Lie Hetland wrote:
> I've named an XMLRPCServlet Main.py; when I refer to it as
> www.foo.bar/Main everything works just fine, but when I refer to it as
> simply www.foo.bar the client seems to block indefinitely...
> Is this common behaviour, or might it have something to do with my
> setup? (I could of course easily make a rewrite rule in Apache to fix
> this, but that seems unnecessary...)

What happens if you access www.foo.bar/ (note the trailing slash)?

WebKit tries to redirect requests for a directory without a trailing slash
to the same URL but including a trailing slash.  So it'll try to redirect
www.foo.bar to www.foo.bar/ .  But maybe xmlrpclib doesn't know how to
handle the redirect.  I don't know why it would hang, though.  I've never
tried to make an XML-RPC servlet be a Main.py before.

> And another thing; when I open an XMLRPCServlet in a browser, it gives
> me an empty web page back. Where does that originate (i.e. how do I
> override it to give some information like "this is not a web page...
> blah, blah, xmlrpc, etc.")?

When I wrote XMLRPCServlet, I never intended it to be accessible both from
XML-RPC and also through a browser.  If you look in the source for
XMLRPCServlet, it only responds to POST requests (which is the type of
request made by XML-RPC).  If you access it through a browser, you're doing
a GET request, which the servlet just isn't designed to respond to.

If you really want to have it respond to both XML-RPC and browser requests,
you'll have to do some more work in XMLRPCServlet to make that happen.
Doesn't seem worth the trouble to me -- I would just make 2 different
servlets, one for XML-RPC requests and one for browser requests.  (Both
servlets could inherit common functionality from a common base class to
avoid code duplication.)

- Geoff

___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



RE: [Webware-discuss] XMLRPCServer problem (maybe)

2002-02-08 Thread Geoffrey Talvola

Geoff wrote:
> If you really want to have it respond to both XML-RPC and 
> browser requests,
> you'll have to do some more work in XMLRPCServlet to make that happen.

By the way, it might be as simple as adding:

def respondToGet(self, transaction):
transaction.response().write('This servlet only responds to
XML-RPC requests.')

to your xml-rpc servlet.  (untested)

- Geoff

___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



[Webware-discuss] problems building mod_webkit

2002-02-08 Thread david harris


having problems building mod_webkit. its an apxs issue, but I cant solve it despite  
research so I wondered if anyone here had seen this and knows what to do.
cant figure out why its throwing  rc=16777215 as an error.
anyone got any clues?

thanks
"
/usr/sbin/apxs -o mod_webkit.so -cmod_webkit.c marshal.c
gcc -DLINUX=22 -DUSE_HSREGEX -DNO_DL_NEEDED  -I/usr/local/apache1.3.23/include
-c mod_webkit.c
gcc -DLINUX=22 -DUSE_HSREGEX -DNO_DL_NEEDED  -I/usr/local/apache1.3.23/include
-c marshal.c
 -Bshareable -o mod_webkit.so marshal.o mod_webkit.o
apxs:Break: Command failed with rc=16777215
make: *** [mod_webkit.so] Error 1"

___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



Re: [Webware-discuss] Webkit hangs after MySQL error

2002-02-08 Thread Aaron Held

I had a similar problem.
When I ran webkit on a Win2k server and connected to a Linux
database through a firewall the connection would be cut off every
night.
Turned out to be a firewall rule. I can keep the conn open now,
but if the connection gets severed then the webkit app hangs.

I have not had time to address this yet, but its a problem.

-Aaron
- Original Message -
From: "Costas Malamas" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 6:34 PM
Subject: Re: [Webware-discuss] Webkit hangs after MySQL error


>
> I still haven't been able to ssh in, but it certainly looked
like the
> appserver was down, as no servlet was responding.  A friend
restarted WK and
> all is fine now, so...
>
> Any pointers as to how I can make the connection more robust?
Is it worth
> re-using the connection, or should I re-initialize it in the
servlet's
> __init__(), for example?  If not, is there a way to test the
connection and
> restart it if it's dead (maybe wrap it in a try/except)?
>
> I guess if there was a way I could intentionally "starve" WK so
I can try
> out different tactics, that would be even more useful.
>
> Thanks,
>
> Costas
>
>
>
> >From: Ian Bicking <[EMAIL PROTECTED]>
> >To: Costas Malamas <[EMAIL PROTECTED]>
> >CC: [EMAIL PROTECTED]
> >Subject: Re: [Webware-discuss] Webkit hangs after MySQL error
> >Date: 07 Feb 2002 12:19:26 -0600
> >
> >There's a possibility that, because your website got a lot of
hits some
> >resource was exhausted (memory, maybe), and that could cause
multiple
> >problems.  I.e., whatever closed the connection also caused WK
to crash.
> >
> >Alternatively, I imagine there's also a number of reasons why
a MySQL
> >connection could be lost: does your application open a new
connection if
> >this happens?
> >
> >And, lastly, is the AppServer gone, or are your servlets just
not
> >responding?  If the AppServer is gone, it would definitely be
a bug in
> >WK (though I don't know what it could do if you run out of
memory --
> >though that would be a sign that WK needs to do more to
preserve
> >memory).  But if your servlets can't recover from the failure
at other
> >points -- like the MySQL connection -- then you'd have to make
those
> >portions more robust.
> >
> >On Thu, 2002-02-07 at 05:40, Costas Malamas wrote:
> > > I am trying to diagnose a WebKit crash: my website got a
large number of
> > > hits yesterday, and apparently WK crashed completely.  WK
is connected
> >to
> > > MySQL on the backend, and the last thing I saw from WK (I
cannt telnet
> >to
> > > the box to do forensics on WK yet) was a MySQL error: "lost
connection
> >to
> > > the database".
> > >
> > > Now, MySQL is still up and running (I am using phpmyadmin
so I am sure
> >the
> > > system's OK), but I am trying to figure out why WK reacted
so badly.
> > >
> > > One possible reason:  in my classes, I am opening a single
mysql
> >connection
> > > that's instantiated once and passed around to every
DB-dependant class.
> >Is
> > > it possible that a WK crash closed this connection and then
the servlets
> > > cannot re-open it?  if so, is there a work-around for this?
> > >
> > > Even more general, possible OT:  am I better off
performance wise, to
> >re-use
> > > the same DB connection, or instead open up one per-servlet
instance or
> > > something?
> > >
> > > Thanks,
> > >
> > > Costas
> > >
> > >
> > >
> > >
_
> > > Join the world's largest e-mail service with MSN Hotmail.
> > > http://www.hotmail.com
> > >
> > >
> > > ___
> > > Webware-discuss mailing list
> > > [EMAIL PROTECTED]
> > >
https://lists.sourceforge.net/lists/listinfo/webware-discuss
> > >
> >
> >
>
>
>
_
> Join the world's largest e-mail service with MSN Hotmail.
> http://www.hotmail.com
>
>
> ___
> Webware-discuss mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/webware-discuss



___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



[Webware-discuss] Webkit hangs after MySQL error (more info)

2002-02-08 Thread Costas Malamas


Well, I did the post-mortem.  It's not a communication thing, the DB and WK 
are on the same machine.  WK reported no errors whatsoever.  However, the 
apache logs are full of "failure connecting to appserver attempt X out of 
10" (or something akin to that).  MySQL also has reported nothing.  Looking 
at the logs, the MySQL error I reported below seems to be unrelated 
(although I am definitely doing something wrong with these connections; any 
literature guys?).

So, long story short it seems that WK just gave up.  Now, I got an 
idea/request: since I am using mod_webkit (linux), how hard would it be to 
rig mod_webkit up to restart the WK appserver if it has failed to connect 
after X attempts?

Thanks for the help everybody.  I've been googling for some good reference 
on how to manage DB connections on a DB-backed website and I've only come 
across pretty basic stuff.  Any pointers?

Thanks,

Costas



>From: "Aaron Held" <[EMAIL PROTECTED]>
>To: "Costas Malamas" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: Re: [Webware-discuss] Webkit hangs after MySQL error
>Date: Fri, 8 Feb 2002 17:35:19 -0500
>
>I had a similar problem.
>When I ran webkit on a Win2k server and connected to a Linux
>database through a firewall the connection would be cut off every
>night.
>Turned out to be a firewall rule. I can keep the conn open now,
>but if the connection gets severed then the webkit app hangs.
>
>I have not had time to address this yet, but its a problem.
>
>-Aaron
>- Original Message -
>From: "Costas Malamas" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Cc: <[EMAIL PROTECTED]>
>Sent: Thursday, February 07, 2002 6:34 PM
>Subject: Re: [Webware-discuss] Webkit hangs after MySQL error
>
>
> >
> > I still haven't been able to ssh in, but it certainly looked
>like the
> > appserver was down, as no servlet was responding.  A friend
>restarted WK and
> > all is fine now, so...
> >
> > Any pointers as to how I can make the connection more robust?
>Is it worth
> > re-using the connection, or should I re-initialize it in the
>servlet's
> > __init__(), for example?  If not, is there a way to test the
>connection and
> > restart it if it's dead (maybe wrap it in a try/except)?
> >
> > I guess if there was a way I could intentionally "starve" WK so
>I can try
> > out different tactics, that would be even more useful.
> >
> > Thanks,
> >
> > Costas
> >
> >
> >
> > >From: Ian Bicking <[EMAIL PROTECTED]>
> > >To: Costas Malamas <[EMAIL PROTECTED]>
> > >CC: [EMAIL PROTECTED]
> > >Subject: Re: [Webware-discuss] Webkit hangs after MySQL error
> > >Date: 07 Feb 2002 12:19:26 -0600
> > >
> > >There's a possibility that, because your website got a lot of
>hits some
> > >resource was exhausted (memory, maybe), and that could cause
>multiple
> > >problems.  I.e., whatever closed the connection also caused WK
>to crash.
> > >
> > >Alternatively, I imagine there's also a number of reasons why
>a MySQL
> > >connection could be lost: does your application open a new
>connection if
> > >this happens?
> > >
> > >And, lastly, is the AppServer gone, or are your servlets just
>not
> > >responding?  If the AppServer is gone, it would definitely be
>a bug in
> > >WK (though I don't know what it could do if you run out of
>memory --
> > >though that would be a sign that WK needs to do more to
>preserve
> > >memory).  But if your servlets can't recover from the failure
>at other
> > >points -- like the MySQL connection -- then you'd have to make
>those
> > >portions more robust.
> > >
> > >On Thu, 2002-02-07 at 05:40, Costas Malamas wrote:
> > > > I am trying to diagnose a WebKit crash: my website got a
>large number of
> > > > hits yesterday, and apparently WK crashed completely.  WK
>is connected
> > >to
> > > > MySQL on the backend, and the last thing I saw from WK (I
>cannt telnet
> > >to
> > > > the box to do forensics on WK yet) was a MySQL error: "lost
>connection
> > >to
> > > > the database".
> > > >
> > > > Now, MySQL is still up and running (I am using phpmyadmin
>so I am sure
> > >the
> > > > system's OK), but I am trying to figure out why WK reacted
>so badly.
> > > >
> > > > One possible reason:  in my classes, I am opening a single
>mysql
> > >connection
> > > > that's instantiated once and passed around to every
>DB-dependant class.
> > >Is
> > > > it possible that a WK crash closed this connection and then
>the servlets
> > > > cannot re-open it?  if so, is there a work-around for this?
> > > >
> > > > Even more general, possible OT:  am I better off
>performance wise, to
> > >re-use
> > > > the same DB connection, or instead open up one per-servlet
>instance or
> > > > something?
> > > >
> > > > Thanks,
> > > >
> > > > Costas
> > > >
> > > >
> > > >
> > > >
>_
> > > > Join the world's largest e-mail service with MSN Hotmail.
> > > > http://www.hotmail.com
> > > >
> > > >
> > > > ___

RE: [Webware-discuss] production sites?

2002-02-08 Thread Costas Malamas


Hmm... might as well add mine to the list; it's a hobby, but's in 
production, 100% python, WK as the front-end: http://memigo.com/

Easy on it though guys... I don't need another /.ing to go crashing WK again 
;-)


Costas



>From: Ian Bicking <[EMAIL PROTECTED]>
>To: Matt Feifarek <[EMAIL PROTECTED]>
>CC: Gil Hauer <[EMAIL PROTECTED]>, [EMAIL PROTECTED]
>Subject: RE: [Webware-discuss] production sites?
>Date: 08 Feb 2002 12:36:16 -0600
>
>On Fri, 2002-02-08 at 11:50, Matt Feifarek wrote:
> > We're using it for several "Intranet" type projects, and one
> > soon-to-be-launched service:
> >
> > www.foliospace.com/sample/
>
>maybe you mean http://www.foliospace.com/about/sample/ ?
>
>If you want to go semi-public with it (just to people interested in
>Webware) be sure to post it to:
>http://webware.colorstudy.net/twiki/bin/view/Webware/WhoIsUsingWebware
>
>
>
> >
> > The "interesting" bits are all on the administration interface, which
> > requires an account and password, unfortunately. But, you can check out 
>the
> > sample portfolio, if you like.
> >
> > | -Original Message-
> > | From: [EMAIL PROTECTED]
> > | [mailto:[EMAIL PROTECTED]]On Behalf Of Gil
> > | Hauer
> > | Sent: Friday, February 08, 2002 11:45 AM
> > | To: [EMAIL PROTECTED]
> > | Subject: [Webware-discuss] production sites?
> > |
> > |
> > | Does anyone have pointers to production sites using Webware?
> > |
> > | Thanks,
> > | Gil
> > |
> > |
> > |
> > |
> > | ___
> > | Webware-discuss mailing list
> > | [EMAIL PROTECTED]
> > | https://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
> >
> > ___
> > Webware-discuss mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/webware-discuss
> >
>
>
>
>___
>Webware-discuss mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/webware-discuss


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss



Re: [Webware-discuss] Webkit hangs after MySQL error (more info)

2002-02-08 Thread Ian Bicking

On Fri, 2002-02-08 at 19:00, Costas Malamas wrote:
> 
> Well, I did the post-mortem.  It's not a communication thing, the DB and WK 
> are on the same machine.  WK reported no errors whatsoever.  However, the 
> apache logs are full of "failure connecting to appserver attempt X out of 
> 10" (or something akin to that).  

Yeah, mod_webkit tries 10 times and leaves rather excessive error
messages in the case that the AppServer just isn't there.

There's a possibility that something in the database adapter could have
crashed all of Python, since it's probably in C and thus potentially
unsafe.  Python itself should never crash.  However, it's also possible
that some exception happened in the WebKit code -- any exception in
servlet code (or any code called by the servlet) should be caught.

I don't know what happens when there's an unexpected exception in
WebKit...?  Does the error get logged anywhere?

Also, if you run out of memory (and VM), I have no idea what will
happen.  If you can reproduce it, then you could figure out more. 
Perhaps using the Apache benchmarking utility (I can't remember the name
now) you could simulate a large load.

> MySQL also has reported nothing.  Looking 
> at the logs, the MySQL error I reported below seems to be unrelated 
> (although I am definitely doing something wrong with these connections; any 
> literature guys?).
> 
> > So, long story short it seems that WK just gave up.  Now, I got an 
> idea/request: since I am using mod_webkit (linux), how hard would it be to 
> rig mod_webkit up to restart the WK appserver if it has failed to connect 
> after X attempts?

People have talked about it, but no one's done it.  I assume this means
it's hard.  It would make sense to try it out with WebKit.cgi, which is
easier to play around with, and then it might be ported to mod_webkit.

> Thanks for the help everybody.  I've been googling for some good reference 
> on how to manage DB connections on a DB-backed website and I've only come 
> across pretty basic stuff.  Any pointers?

I don't know... it's probably not in the database stuff, unless you have
a particular reason to believe so.

  Ian



___
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss