open a python console and try:
---
import time
import socket
time.time(); socket.getaddrinfo(socket.getfqdn(), 0); time.time()
---
this is the bottleneck and how much time it takes;
now try:
---
time.time(); socket.getaddrinfo(socket.getfqdn('127.0.0.1'), 0,
socket.AF_INET); time.time()
---
this time should be (much) faster.
the reason is a bad resolution of the FQDN of your machine. just put the
name of your machine in /etc/hosts (after 'localhost') and you are done.
my /etc/hosts file (as example) is:
#
# /etc/hosts: static lookup table for host names
#
#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost TARDIS
::1 localhost.localdomain localhost TARDIS
# End of file
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.