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

Home » FUDforum Development » Bug Reports » NNTP Issue
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
NNTP Issue [message #160799] Sat, 24 October 2009 08:45 Go to next message
eccl1213 is currently offline  eccl1213
Messages: 7
Registered: October 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I have NNTP setup to pull messages into a forum.

The NNTP import seems to get stuck on certian messages.

For example, it will import up to message 169 and then simply stay there. The CPU continues to run at 99%. I left it run for a full 24 hours and it still says importing message 169.

If I cancel the import and restart it, it starts with 169 again and still does not get past it.

I don't see any errors so I'm not sure why its choking on the message.

Now, edited the .nntp file and changed it to reference 170. So then it started the import again but stopped again at 181.

Considering there are several thousand messages, editing the file everytime it stops will be a pain.

Is there anyway I can see why its choking in specific messages?
Re: NNTP Issue [message #160802 is a reply to message #160799] Sat, 24 October 2009 09:46 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Is it a public group? Can you please post the details so we can try to reproduce it?
Re: NNTP Issue [message #160806 is a reply to message #160802] Sat, 24 October 2009 10:58 Go to previous messageGo to next message
eccl1213 is currently offline  eccl1213
Messages: 7
Registered: October 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
It is a public group.

gmane.comp.telephony.pbx.sipfoundry.general



Re: NNTP Issue [message #160808 is a reply to message #160806] Sat, 24 October 2009 17:33 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Thanks, what Newsgroup Server are you using? I need to connect to the same server to get to message 169.
Re: NNTP Issue [message #160811 is a reply to message #160808] Sat, 24 October 2009 18:03 Go to previous messageGo to next message
eccl1213 is currently offline  eccl1213
Messages: 7
Registered: October 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
I connect directly to news.gmane.org

Thanks!
Re: NNTP Issue [message #160813 is a reply to message #160811] Sun, 25 October 2009 02:43 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
Here is a patch for you to evaluate and test:

Index: nntp.inc
===================================================================
RCS file: /forum21/install/forum_data/include/nntp.inc,v
retrieving revision 1.85
diff -u -a -r1.85 nntp.inc
--- nntp.inc    17 Sep 2009 19:52:53 -0000      1.85
+++ nntp.inc    25 Oct 2009 06:42:41 -0000
@@ -390,7 +390,9 @@
                                   }
                           }

-                          $eom = strpos($this->body, $this->boundary, $s);
+                          if( ($eom = strpos($this->body, $this->boundary, $s)) === FALSE) {
+                               $eom = strlen($this->body);
+                          }
                           if ($have_text_body) {
                                   $text_body = substr($this->body, $s, $eom-$s);
                                   $s=$eom;
Re: NNTP Issue [message #160820 is a reply to message #160813] Sun, 25 October 2009 07:29 Go to previous messageGo to next message
eccl1213 is currently offline  eccl1213
Messages: 7
Registered: October 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
Works Great!

I've now imported a 1000 messages without it stopping.

Thank you for the very quick help.

Re: NNTP Issue [message #160996 is a reply to message #160820] Mon, 09 November 2009 17:44 Go to previous messageGo to next message
jm2morri is currently offline  jm2morri   Canada
Messages: 225
Registered: January 2009
Location: Stratford, Ontario, Canad...
Karma: 0
Senior Member
add to buddy list
ignore all messages by this user
Did this change make it to the main line yet? If so, what version?

James.
Re: NNTP Issue [message #161001 is a reply to message #160996] Tue, 10 November 2009 01:32 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
It's fixed in the latest stable 3.0.0 release.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: What is Pri: ?
Next Topic: cut subject import nntp
Goto Forum:
  

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

Current Time: Sun Dec 17 16:40:05 EST 2017

Total time taken to generate the page: 0.00756 seconds