incubator-awf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Stevenson (Moved) (JIRA)" <j...@apache.org>
Subject [jira] [Moved] (AWF-125) Timeout priorities
Date Wed, 29 Feb 2012 10:10:08 GMT

     [ https://issues.apache.org/jira/browse/AWF-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tony Stevenson moved DEFT-86 to AWF-125:
----------------------------------------

    Reporter: Niklas Gustavsson
         Key: AWF-125  (was: DEFT-86)
     Project: Apache AWF  (was: Deft)
    
> Timeout priorities
> ------------------
>
>                 Key: AWF-125
>                 URL: https://issues.apache.org/jira/browse/AWF-125
>             Project: Apache AWF
>          Issue Type: Bug
>            Reporter: Niklas Gustavsson
>
> facebook/tornado exerts itself to satify the timeouts added to the IOLoop.
> eg.
> while True:
>     poll_timeout = 0.2
>     [ ... ]
>     if self._timeouts:
>         now = time.time()
>         while self._timeouts and self._timeouts[0].deadline <= now:
>             timeout = self._timeouts.pop(0)
>             self._run_callback(timeout.callback)
>         if self._timeouts:
>             milliseconds = self._timeouts[0].deadline - now
>             poll_timeout = min(milliseconds, poll_timeout)
> the last row is interesting. the poll_timeout (TIMEOUT in deft) is modified so the next
timeout will be executed as soon as possible.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message