Hi,
This week I was able to make the working prototype of the proxy that is
currently there are some troubles of forwarding of persistent connections,
but I hope to fix it early next week.  For testing, I use one monkey server
with my plugin enabled, as a reverse proxy, and one more monkey server that
handles the requests.

In more details about the implementation:
I designed a struct that holds all the data necessary to support proxy
connections to the client and the slave server. I also wrote helper
functions so I can work with that struct.I wrote working event handlers for
reading, writing and closing. I use the API to modify the event poll so
that I get all and only the events I need for the proxy. I use a buffer to
store the slave server response until it can be sent to the client.
Handling this buffer will probably require some improvements, but for the
tests I am doing right now it works well enough. I have improved the
configuration parsing and also compiled the config.c file which is parsing
the configuration.

Link to the repository https://github.com/nikolanikov/monkey , from here
you are able to review the code and provide some advises.

Regards,
Nikola Nikov
_______________________________________________
Monkey mailing list
[email protected]
http://lists.monkey-project.com/listinfo/monkey

Reply via email to