Does anyone know if the precheck article STAT connections to your news server are included in the thread count? And the thread count must be less than the max connections set in the server config - I guess?
The reason I ask is that I've just recently switched on pre-checking and have since noticed these errors in my logs:
Code: Select all
2012-10-28 20:49:08,108::DEBUG::[downloader:504] Server login problem: 481, 481 (remote) gn;gnXXXXXX: max number of simultaneous IP addresses reached
2012-10-28 20:49:08,109::ERROR::[downloader:520] Probable account sharing (news.giganews.com:563)I have one server set up, with 20 connections, no backup server, Disconnect on Empty Queue is on, SSL on port 563. I just recently switched on prechecking and saw these errors. So I thought I'd try to look at the code before asking, but it's all a bit new to me - Python, NZB file structure and NNTP!
Sooooo .... trying to get my head around the code. I see the precheck bool is set on an nzo object. I think an nzo is an object that encapsulates the NZB file plus other info/methods. I see a queue, nzo added to the queue... newswrapper that just gets the header not the full article if precheck is set on the nzo.A decoder that does a special check if it' a precheck - sees if the file exists on the server, or looks for clues as to why not if it's missing. Then some maths - foreach nzbfile obj, see how much is left, see if there are any pars, see what we need, ratios, need, short, pars, enough ... it's enough for me ... it's 5am here!
Well a bit more ... A singleton downloader that tracks the active threads(connections) ... ah, the downloader sets the newswrapper body up with the precheck bool. So it should count a precheck in the active threads right? I haven't the energy to check out how the busy and idle threads arrays are managed...
The giganews 481 error mentions "simultaneous IP" so the clues_too_many_ip() method returns true. however if the text was different and mentioned threads, you'd have the same error, 481, but the if/elseif code at this point raises the too_many_connections error first, then, if not that then the clues_too_many_ip() .... and the account sharing warning.
I guess other news providers give 481 errors with 'connections', and 'threads' in the error text? Or am I just confused max sim IPs is 1 and I'm barking up the wrong tree with threads/connections? Ah, no, I spoke to a giganews support guy about this error and he told me to increase my max connections from 20 to 40. So he thought the error was to do with threads/connections and not different IPs. Not sure how increasing my max connections helps with this issue though.
Jeez 6am and I'm reading out-dated NNTP RFCs http://tools.ietf.org/html/rfc4643#section-4
Anyway, any ideas why I'm getting the errors?
Thanks
James
BTW: I'm very impressed with the code. And I'm liking Python. What's a good editor for reading Python projects. I was mainly grepping the code just now. Would be nice to be able to jump to method/class defs etc.

