Simple requests sequentialiser?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dominique de Waleffe

    Simple requests sequentialiser?

    I have a need to have a simple multithreaded sort of proxy wich listens
    to a given port and for each client session,
    sends the requests to a single server (mono thread and listening on one
    single port) that sits behind and returns the answers to the appropriate
    client.

    I confess that I have spent very little time on finding a solution to
    this yet. I have a feeling that this should be a piec of cake for
    python possibly with twisted or even without it....

    Is there anyone that can give me a pointer to an example or to a
    specific place in the voluminous documentation of python and tools for
    such a thing....

    Thansk,
    D.
    --

    Dominique de Waleffe Email: ddw@missioncrit icalit.com [No HTML please]
    Mission Critical, Drève Richelle 161 Bât N, B-1410 Waterloo, Belgium
    Phone: +32 2 757 10 15 Fax: +32 2 759 27 60
    ICQ: 289-306-495



  • Diez B. Roggisch

    #2
    Re: Simple requests sequentialiser?

    > I confess that I have spent very little time on finding a solution to[color=blue]
    > this yet. I have a feeling that this should be a piec of cake for
    > python possibly with twisted or even without it....
    >
    > Is there anyone that can give me a pointer to an example or to a
    > specific place in the voluminous documentation of python and tools for
    > such a thing....[/color]

    You should investigate into twisted - it is _really_ worth the effort, and
    not so complicated at all.

    BTW, there is no need for multiple threads - usually, several network
    connections can be processed by one thread/process. As long as you don't
    plan to server thousands of requests per second....

    Diez

    Comment

    Working...