FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » NNTP: Delete Canceled Messages in FUDforum and other issues...
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
NNTP: Delete Canceled Messages in FUDforum and other issues... [message #33258] Tue, 22 August 2006 15:18 Go to next message
woody is currently offline  woody   Switzerland
Messages: 19
Registered: August 2006
Karma: 0
Junior Member
Hello all

We use FUDForum as a replacement for the simpel NewsPortal Web Based Newsreader to access a great number of Newsgroups.

So I have found quite a few issues with the NNTP Gateway of news portal.

The most serious one is that Posts Canceled by NNTP Users (like our Anti-Spam Bot) don't disappear on the FUDForum. Is there a way for FUDForum to proccess cancel messages or to sync deleted posts to the forum?

Another issue is about message size. The nntp.php proccess seams to use huge amounts of memory, probably reading all messages into memory before inserting them into the forum. Could this be improved in a memory saving way?

Third issue Smile

Do we realy need a crontab entry for every single newsgroup? Couldn't just nntp.php proccess all newsgroups as for example the NNTP Gateway of MailMan does?

-Benoit-
DOS Attack against nntp.php [message #33259 is a reply to message #33258] Tue, 22 August 2006 15:23 Go to previous messageGo to next message
woody is currently offline  woody   Switzerland
Messages: 19
Registered: August 2006
Karma: 0
Junior Member
woody wrote on Tue, 22 August 2006 17:18

Hello all

Another issue is about message size. The nntp.php proccess seams to use huge amounts of memory, probably reading all messages into memory before inserting them into the forum. Could this be improved in a memory saving way?




Uhm, this seams to be realy serious. not only nntp.php does end itself:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 40 bytes) in /home/forum/FUDforum/include/theme/default/wordwrap.inc on line 66
Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes)

the message is not gated and nntp.php tryes every time it is started and never manages to proccess further messages. So this is practicly a DOS attack against the NNTP-Gateway of FUDForum.

-Benoit-
Re: DOS Attack against nntp.php [message #33261 is a reply to message #33259] Tue, 22 August 2006 16:01 Go to previous messageGo to next message
woody is currently offline  woody   Switzerland
Messages: 19
Registered: August 2006
Karma: 0
Junior Member
Uhm, I start suspecting a Memory leak:

It's a 500kbyte PDF file in the post...

Increased memory limit from 8MB to 20MB

After about 15 minutes processing:

Fatal error: Allowed memory size of 20971520 bytes exhausted (tried to allocate 262144 bytes) in /home/forum/FUDforum/include/theme/default/wordwrap.inc on line 66
Allowed memory size of 20971520 bytes exhausted (tried to allocate 0 bytes)

Increasing to 50MB... and let's see what happens...

-Benoit-
Re: DOS Attack against nntp.php [message #33262 is a reply to message #33261] Tue, 22 August 2006 16:02 Go to previous messageGo to next message
woody is currently offline  woody   Switzerland
Messages: 19
Registered: August 2006
Karma: 0
Junior Member
If anybody would like to try to reproduce or debug, try to sync news://news.woody.ch/scout.test

-Benoit-
Re: DOS Attack against nntp.php [message #33276 is a reply to message #33262] Wed, 23 August 2006 13:10 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
There is a fix for this issue in the CVS already.
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=11557


FUDforum Core Developer
Re: DOS Attack against nntp.php [message #33282 is a reply to message #33276] Wed, 23 August 2006 13:20 Go to previous messageGo to next message
woody is currently offline  woody   Switzerland
Messages: 19
Registered: August 2006
Karma: 0
Junior Member
Ilia wrote on Wed, 23 August 2006 15:10

There is a fix for this issue in the CVS already.
http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=11557


Thank you, so I'm not the only one with that problem Smile

How about my problem with canceled messages? Is there a way to solve that?

-Benoit-
Re: DOS Attack against nntp.php [message #33284 is a reply to message #33282] Wed, 23 August 2006 14:57 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
FUDforum does not have any handling for "canceled" (I presume deleted on NNTP messages). The nntp script always reads forward in the nntp queue, it does not go back re-check older messages, that would be extremely slow.

FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Empty PMs
Next Topic: I need a link to go back to drupal
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 23:03:32 GMT 2024

Total time taken to generate the page: 0.02242 seconds