gddo-server: add a semaphore to limit concurrent graph requests

There should be an upper bound for the number of "dot" processes
that can be started concurrently in order to serve incoming HTTP
requests for the ?import-graph pages, to help avoid resource
exhaustion and server overload.

This change implements a limit of 10 such processes at once.

Change-Id: I65d01996461ae212bb84cfd8edfbe6fcec43c329
Reviewed-by: Robert Findley <>
1 file changed