World: r3wp
[!Uniserve] Creating Uniserve processes
older newer | first last |
DideC 5-Mar-2005 [16] | Is your problem solve (what you post on French forum) ? |
Graham 5-Mar-2005 [17x3] | not really .. I just fudged it. |
I would like to know the correct way though of preserving session data | |
I posted to the french forum as I thought there has the most experience with UniServe ... | |
DideC 5-Mar-2005 [20] | Not much. appart Dockimbel of course |
Graham 5-Mar-2005 [21] | I see. |
DideC 5-Mar-2005 [22] | The doc said : Client = Property set at runtime pointing to the current client port! value At runtime mean while the client is connected. |
Graham 5-Mar-2005 [23] | ahh .. so I have to set this on-connected |
DideC 5-Mar-2005 [24] | Yes, it's what i think |
Graham 5-Mar-2005 [25x7] | rather .. on-new-client |
I've posted a new version 0.0.4 : http://www.compkarori.com/vanilla/display/Smtpd.r | |
seems not to correctly set the counter back by one when closing client connection | |
oops ,.. it seems to be working. Spam is now flooding in :( | |
fix was to send an error code on receiving EHLO command | |
seem to be receiving hundreds of spam from judge.lis.net.au | |
After repeated testing, I have bumped up the version to 0.1.0 at http://www.compkarori.com/vanilla/display/Smtpd.r As explained in the URI, a form of teergrubbing ( anti-spam ) is implemented. | |
Graham 6-Mar-2005 [32x3] | I'm getting 4 smtp connections to my server per min .. all of it spam. |
I left my smtp service running all night .. about 10 hours .. and after the 2190'th spam, I hit the infamous "invalid data type during recycle" :( | |
I'll first try switching to >> rebol/version == 2.5.55.3.1 | |
Graham 8-Mar-2005 [35x2] | Had the service running all day while I was at work .. and had over 1700 smtp connections, of which the script allowed 6 email thru. No spam. |
I'm now going to see if I can implement greylisting .. which is an interesting technique for fighting spammers. | |
Graham 9-Mar-2005 [37x3] | Interesting stuff. With greylisting, and an enhancement I made to the greylisting technique, I have managed to reduce spam. In 6 hours I 6 spam made it through to the spamtrap addresses, whereas I would have expected more like 20. And that is from about 800 smtp connections .. or potentially 800 spam being sent to my MX record. |
should read .. 6 spam. | |
And that is with a block period of 10 seconds. The greylisting paper suggests using 1 hour and I'll try that now. | |
Pekr 9-Mar-2005 [40] | Graham - what is your experience with Uniserve so far? So far so good? :-) |
Graham 9-Mar-2005 [41x3] | Good. |
Needs more documentation on writing modules .. but dockimbel says he will hopefully produce those in the next couple of days. | |
As he says, it's very easy to write a new service for it. | |
Will 9-Mar-2005 [44] | Pekr: Uniserve is uberkool!! It is my main webserver since january 2003. Since then it crashed 2-3 times, not sure it was uni or rebol 8) |
Graham 9-Mar-2005 [45] | what version of rebol are u using? |
Will 9-Mar-2005 [46] | /core 2.5.8.2.4 |
Graham 9-Mar-2005 [47x2] | Does that have the new async core in it? |
I can't remember all these numbers ... :( | |
Will 9-Mar-2005 [49] | no 8( |
Graham 9-Mar-2005 [50] | I was getting async read errors, and at least one data type recycle error before switching to 2.5.55.3.1 |
DideC 9-Mar-2005 [51] | Uniserve is not usable with recent async Core. It use the "old" async port system. |
Graham 9-Mar-2005 [52x2] | so, doc said .. but my smtp service appears to be working ... |
dunno what this means ... | |
JaimeVargas 9-Mar-2005 [54] | Graham, can you encap uniserve scripts? |
Graham 9-Mar-2005 [55x3] | I don't see any reason why not ... |
need to redefine 'launch back to itself again. | |
it looks for files in the services directory .. need to change that as well I guess | |
JaimeVargas 9-Mar-2005 [58] | Last I checked uniserve uses a directory structure to handle stuff. So I wonder if the encaped app needs to replicate this structure. |
DideC 9-Mar-2005 [59] | I just encap Uniserve script 2 weeks ago. Need some tricks to encap the protocols/services, that normally Uniserve loads from disk at startup. |
JaimeVargas 9-Mar-2005 [60x2] | Thats what I thought? |
DideC, Do you mind sharing? | |
Graham 9-Mar-2005 [62x3] | Didier, do you have an example of your encapped changes ? |
I want to add database storage for my smtp service, and since I use odbc, I have to encap to distribute ...otherwise users have to purchase command | |
( and, no, I don't know anything about mysql .. ) | |
DideC 9-Mar-2005 [65] | In short. Protocols and services (or whatever else) are encapped as data in a block! (a cache sort-of). instead of 'do/'load, you have to use 'do-cache/'load-cache in your script. The cache functions are initialize differently either you are encapping or doing the script. |
older newer | first last |