Re: Slow load on edit action

Philip Neustrom <[email protected]> Thu, 28 Oct 2004 03:38:16 -0700 (PDT)
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <[email protected]>
I looked into it, and it appears that it's a similar
problem.  It's stalling on the line:

hostname = socket.gethostbyaddr(host)[0]

in editlog.py

so my fix is to just record the hostname as the IP (i
figure this won't break anything?)

so, my new question is:

where is the hostname needed? is this just for pretty
logs?


--- Florian Festi
<[email protected]> wrote:

> > (Note:  I'm running a heavily-modified version of
> moin
> > 1.2.3)
> >
> > Everything in our wiki is relatively snappy:
> browsing
> > pages, clicking info, Recent Changes, etc.  The
> only
> > thing that takes a long time for the server to
> send to
> > the user is the edit action.  When action=edit is
> > invoked it takes a really long time for the server
> to
> > send the edit page to the user.  I've tried
> hunting
> > down the possible source of this slowdown, and
> without
> > much luck.  It's clearly in
> PageEditor.sendEditor()
> > but even if I replace sendEditor() with something
> > simple (such as just writing the http headers and
> just
> > that) it will still take a very long time to send
> this
> > to the client machine.  What could be the possible
> > source of this?
> 
> We had some peoples that had delays (IIRC at the
> edits). Problem in this 
> cases were DNS problems on Windows maschines. IIRC
> they did not find their 
> own hostname. Delay was exactly the DNS timeout.
> Solution was adding own 
> name to the hosts file (don't ask me where exactly
> it is located in Win)
> 
> I cannot find the mails right now, perhaps search
> the mail archive.
> 
>  	cu
> 
>  		FlorianFesti
> 



		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click