I found the problem. It was a problem with python socket library. 
Apparently the socket wasn't being buffered properly, or at least that's 
my understanding.

The problem was in the socket.py  library, found in Ubuntu 9.10 under  
/usr/lib/python2.6/socket.py

At around line 500, replace this line
     for res in getaddrinfo(host, port, 0, SOCK_STREAM):
with this on
    for res in getaddrinfo(host, port, AF_INET, SOCK_STREAM):

Apparently now the socket will be properly buffered. With the old line, 
wiki login took about 90 seconds for me. Now it takes less than a second.

Hope that helps someone else.

ObsessiveMathsFreak wrote:
> I have recently begun using pywikipediabot again and for some reason it 
> is appallingly slow.
>
> Logging into my wiki take upwards of a minute and each and ever single 
> action, e.g. pages moves, takes about this length of time as well. My 
> wiki is otherwise quite quick and previously  pywikipediabot was 
> reasonably fast.
>
> Has anyone else encountered issues like this? What could be causing 
> these huge delays?
>
> _______________________________________________
> Pywikipedia-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l
>
>   

_______________________________________________
Pywikipedia-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikipedia-l

Reply via email to