Ax2 AIO bug

2007-05-07 Thread roseyaxkit . 20 . ftumsh
Lo all, I thought I'd use the plugins in the aio directory. They work ok for most pages, however, for pages above a certain size, they hang. Well one of them does. The browser will get so much of the page to display, then it just sits there with the mouse pointer set to doing something John

Re: Ax2 AIO bug

2007-05-09 Thread roseyaxkit . 20 . ftumsh
Matt Sergeant - [EMAIL PROTECTED] wrote: On 4-May-07, at 7:58 AM, [EMAIL PROTECTED] wrote: I thought I'd use the plugins in the aio directory. They work ok for most pages, however, for pages above a certain size, they hang. Well one of them does. The browser will get so much of the page to

Re: AxKit2, Apache and all that

2007-06-08 Thread roseyaxkit . 20 . ftumsh
Martijn, it would make sense to upgrade the software as well. So I upgraded from Apache1 to Apache2, from mod_perl1 tot mod_perl2 and... well, I think this meant I had not choice but to move to AxKit2 as well. 'AxKit2 does away with Apache', the wiki says. I have to admit that this very

Uploading files

2007-06-12 Thread roseyaxkit . 20 . ftumsh
Lo, I did offer to write a file upload. Well, I haven't as yet... Mainly because I have no clue about Danga. Would a mod to the parse_post_params work ie have the danga stuff carefully hidden from me or will one of the project coders have to hack at it? Any clue, caveats gratefully received...

Re: AxKit2 : AxAddRootProcessor

2007-06-18 Thread roseyaxkit . 20 . ftumsh
Martijn, So, after the advice I got on this list, I decided to give it a go and run AxKit2 to deliver XML-turned-HTML files on our site. The very basic setup works well so far: using Apache as a main server and, using mod_rewrite, letting .xml files (and only those) be delivered by the

Re: Uploading files

2007-06-18 Thread roseyaxkit . 20 . ftumsh
On Tue, 2007-06-12 at 18:58, Matt Sergeant - [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I did offer to write a file upload. You certainly shouldn't have to have any knowledge about Danga. All you need to know about is the format that file upload data comes in as. Check the

Ax2: Having a secondary server to do long jobs

2007-10-12 Thread roseyaxkit . 20 . ftumsh
Lo, I have some requests that take a long time to service. Now, as Ax2 is single process, this causes a problem. What can I do to solve this problem? I currently have 1) Some way of palming off to apache (I have no idea how to do this) 2) Use some flavour of Net::Server as a sort of RPC

Danga and watching other FDs

2007-11-27 Thread roseyaxkit . 20 . ftumsh
Lo, AxKit2. Well, I've finally got round to farming out the slow bits of my app. Atm it's using Net::Server, but I am going to look at gearmand shortly. Anyway, as it's the first time I've used sockets, could someone have a look at my first hack and tell me what I'm missing please? I essentially

CONTINUATIONS

2007-11-27 Thread roseyaxkit . 20 . ftumsh
Lo, I've had a look at the webmail example and am not much the wiser. Could someone have a look at my plugin and give me a big kick in the right direction so I can make it use continuations please? I've made a bit of a start, but am confused as to the correct way of doing things... use

Re: CONTINUATIONS

2007-11-30 Thread roseyaxkit . 20 . ftumsh
On 29-Nov-07, at 4:55 AM, JD wrote: Thus far I have the Net::Server and it returning xml. What I haven't got is the continuation stuff. I can probably hack at it and eventually get it to work, but I'd rather hack in the right direction from the get go. OK, so your best start at this is to

Re: CONTINUATIONS

2007-11-29 Thread roseyaxkit . 20 . ftumsh
On Thu, 2007-11-29 at 02:13, Matt Sergeant - [EMAIL PROTECTED] wrote: On 27-Nov-07, at 9:39 AM, [EMAIL PROTECTED] wrote: OK, so in AxKit continuations are designed for network access (or in some cases filesystem access, but basically async I/O), not for what some other web application

ax2: serve_cgi

2007-12-12 Thread roseyaxkit . 20 . ftumsh
Lo, serve_cgi is leaving zombie processes behind. Any ideas how to reap them? John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

authenticate plugin

2008-01-03 Thread roseyaxkit . 20 . ftumsh
Lo all, I am unable to get rid of the warning Could not seed PRNG. You need to call BLAH yourself. The call to BLAH is dying. When I run the same code from the shell perl -Metc etc it doesn't die. ie messages before and after the srand call are shown. So, why is that? I also notice that a

authenticate bug

2008-01-04 Thread roseyaxkit . 20 . ftumsh
Lo, I've fixed the bug. After RTFM, a require for the Math module needs to have Math::Random::MT::Auto-import(); after the require. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

authenticate plugin

2008-01-04 Thread roseyaxkit . 20 . ftumsh
Lo, How do I get at the session data in the authenticate plugin from within my plugin? ie the user name and the session id. John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

authenticate bug

2008-01-04 Thread roseyaxkit . 20 . ftumsh
I've found out the problem. It's in the Math::Random::MT::Auto module. If the require is changed to a use the problem goes away. In the init sub there's a line that has *_secret = sub { snip then in the eval there's a *secret = sub { snip and after the eval there's $_SERVER_SECRET =

AxKit2: Danga woes

2008-02-29 Thread roseyaxkit . 20 . ftumsh
Latest Danga::Socket (1.58 iirc) Lo, I'm having a lot of trouble with my ax2 app. The general methodology is this: 1) ax2 receives a request 2) ax2 serializes the request, creates a socket and sends the request to an rpc server ( Net::Server ) 3) rpc serializes the result (xml and redirects

Re: AxKit2 continuations

2008-04-16 Thread roseyaxkit . 20 . ftumsh
Martijn wrote: I'm currently looking into AxKit2 again, this time with the ultimate (and hopefully not-so-long-term) goal of converting our web server to run on AxKit2 (with an Apache front-end that is). Now that I have a better understanding of how AxKit2 works, I am quite excited about it and

ax2: Is it possible to...

2008-07-03 Thread roseyaxkit . 20 . ftumsh
Start a file download from the server? I have a process the user starts and it will generate some files. I was wondering if it was possible to send each of the files in turn to the browser. I presume something like Apaches send_fd (which I've never used, so could be totally wrong). My other

Ax2: File downloads

2008-07-07 Thread roseyaxkit . 20 . ftumsh
Lo, I'm trying to create links to text files on my system. What I'm trying to do is get it so that the user can do a save link as and save the files locally. The files are on an nfs mount. /mnt/foo/bar. What's the best way to do it? I think a way is to create a temp directory in my webroot and

AxKit2: XML::LibXML: unregistering node, while no nodes have been registered?

2008-07-09 Thread roseyaxkit . 20 . ftumsh
I'm getting the error as per the subject in my xml_response hook. Any ideas what sort of thing I should be looking at as to a cause? Ta John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Ax2: File downloads

2008-07-14 Thread roseyaxkit . 20 . ftumsh
Anyone got any ideas as to a way to do this please? Original Message Subject: Ax2: File downloads Date: Mon, 7 Jul 2008 23:13:14 +0100 (BST) From: [EMAIL PROTECTED] To: axkit-users@axkit.org Lo, I'm trying to create links to text files on my system. What I'm trying to do is

Re: Ax2: File downloads

2008-07-14 Thread roseyaxkit . 20 . ftumsh
Martijn, I think I'm trying to be a bit too clever. Perhaps the easy way is to 1) prohibit directory listings of the web root 2) create a unique directory in the root 3) put the files in the unique dir 4) allow the user to d/l from that dir 5) clean up the directory afterwards The way I was