NNTP Issue [message #160799] |
Sat, 24 October 2009 12:45 |
eccl1213
Messages: 7 Registered: October 2009
Karma: 0
|
Junior Member |
|
|
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 #160813 is a reply to message #160811] |
Sun, 25 October 2009 06:43 |
|
naudefj
Messages: 3772 Registered: December 2004
Karma: 28
|
Senior Member Administrator Core Developer |
|
|
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 11:29 |
eccl1213
Messages: 7 Registered: October 2009
Karma: 0
|
Junior Member |
|
|
Works Great!
I've now imported a 1000 messages without it stopping.
Thank you for the very quick help.
|
|
|
|
|