Following is the snippet of code I am running to use multiprocessing which fires HTTP request in parallel. After the running on console it is getting hung at "requests.get(url)" and neither proceeding ahead nor throwing an error.
def echo_100(q):
...
print "before"
r = requests.get(url)
print "after"
...
q.put(r)
q = multiprocessing.Queue()
p = multiprocessing.Process(target=echo_100,args=(q))
p.start()
p.join()
resp = q.get()
requests.get
return for the URI if you do it in sequence? – Weathercock