[Pythondirector-stuff] Problem with connection
Brought to you by:
anthonybaxter
From: Gastone P. <gas...@gm...> - 2010-12-17 13:48:44
|
Hello. I have a problem with connection in pydirectory. my client calls pydirector which redirects the http request to one of 4 nodes who run in the same machine but in different port. ex client ----> xx.xx.xx.xx:8080 (pydirector) ---> xxx.xxx.xxx.xxx:9000 xxx.xxx.xxx.xxx:9001 xxx.xxx.xxx.xxx:9002 xxx.xxx.xxx.xxx:9003 then the xxx.xxx.xxx.xxx:9xxx choosen by pydirector has to return the answer first to pydirector (i suppose), that to client. REQUEST: client -> pydirector ->node ANSWER: node->pydirector->client The problem is this: if i call directly the node from client without pydirector , for example with urlib.urlopen(url) this return me html code (response). Perfect. If, instead, i call pydev, the request is send to one of 4 node but i wait the response forever, because ( i suppose) some connections are not close or free.. only if i read first x lines i can see a piece of html..it seems the client waits for someone who close connection.. the same problem is if a do a benchmark test with ab (apache). i wait forever the response. is it possible? how can i resolve the problem?? thank you very much -- Gastone Penzo |