Michael Pliskin a écrit :
Hi Nicolas,
I’ve just started using mod_tora for a very specific purpose: create an
HTTP proxy for TCP connections (i.e. imagine someone needs to connect to
MySQL directly from a Flash client for whatever reason). The main issue
is that you have to keep a pool of open sockets on the server and route
client HTTP requests to appropriate sockets. So for now I am using
tora.Share to keep these sockets and met an issue: I need to implement
TTL for a socket and close it automatically if client has not used it
for a long time. So my immediate request to add a share_list method
listing all names present, or maybe a smarter TTL mechanism built-in
into the tora itself.
I can provide a patch if you tell me which direction you’d like to move..
Hi Michael,
In case you don't know, Tora has been moved to SVN :
http://code.google.com/p/haxe/source/browse/#svn/other/tora
I actually recently added a new API which is called tora.Api.call.
It enable you to call an URL on your service with an optional delay (in
seconds) and to call it until a given result was returned (optional).
This might help you implementing your feature.
Nicolas
--
Neko : One VM to run them all
(http://nekovm.org)