
Originally Posted by
didacgil9
...
Could I now call a mashup.py that consumes getinformation.py to create a google Maps presentation combining both sercices?
If that mashup.py, running as a request handler under your MWS, would call getinformation.py via the REST API exposed by your same MWS, then currently that would cause a deadlock. Well, probably some timers somewhere would fire at some point and the operation would be aborted.
If mashup.py is not running under MWS, then there is no problem.
Yes, and thread support is there but, as it is a bit shaky, disabled in MWS. If you want to try it out, then open .../conf/httpd.conf and tinker with the following
Code:
# The following settings affect the performance and resource
# consumption of the server:
#
# ThreadLimit
# MinSpareThreads
# MaxSpareThreads
# StartThreads
# MaxRequestsPerThread
# ThreadStackSize
# MaxMemFree
#
#
# ThreadLimit: The maximum number of threads, i.e. the maximum
# number of _concurrently_served_ clients.
#
# Min: 1
# Max: 16
# Default: 4
#
# NOTE: If mod_php is loaded, then the ThreadLimit will
# always be adjusted down to 1, as PHP is currently
# not MT compatible.
#
#ThreadLimit 4
#
# MinSpareThreads: The minimum number of spare threads, i.e. idle
# threads that can handle sudden request spikes. If the number of
# idle threads drops below this value, then more will be created.
#
# Min: 1
# Max: Value of ThreadLimit - 1
# Default: 1
#
# The default value of 1 means in practice that unless the maximum
# number of threads has been fixed at 1, there will always be at
# least 2 threads.
#
#MinSpareThreads 1
#
# MaxSpareThreads: The maximum number of spare threads, i.e. idle
# threads that can handle sudden request spikes. If the number of
# idle threads grows above this number, then threads will be killed.
#
# Min: 1
# Max: Value of ThreadLimit - 1
# Default: 1
#
# The default value of 1 means in practice that unless the maximum
# number of threads has been fixed at 1, there will always be at
# least 2 threads.
#
#MaxSpareThreads 1
#
# StartThreads: The number of threads that should be started at
# startup.
#
# Min: 1
# Max: Value of ThreadLimit
# Default: 1
#
#StartThreads 1
#
# MaxRequestsPerThread: The maximum number of requests a thread may
# handle before it should exit. A new thread is created in its stead.
#
# Min: 0 (no upper limit)
# Max: maxint
# Default: 0
#
#MaxRequestsPerThread 0
#
# ThreadStackSize: The stacksize (in BYTES) of each thread handling
# client connections.
#
# Default: 0
#
# The default value of 0 means that the system default is used.
# Currently the default is 0x10000.
#
#ThreadStackSize 0
#
# MaxMemFree: The maximum number of free KILOBYTES that the
# allocators are allowed to hold before freeing the memory.
#
# Default: 0 (no limit)
#
# Without a limit, the amount of memory reserved by Apache can
# only grow, but never shrink.
#
#MaxMemFree 0
Johan