Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None

      Description

      From tornadoweb (applies to deft also):
      http.fetch("http://friendfeed-api.com/v2/feed/bret", callback=self.async_callback(self.on_response))
      "If you make calls to asynchronous library functions that require a callback (like the HTTP fetch function above), you should always wrap your callbacks with self.async_callback. This simple wrapper ensures that if your callback function raises an exception or has a programming error, a proper HTTP error response will be sent to the browser, and the connection will be properly closed."

      The async_callback wrapper function is removed in new tornado releases (> ~0.2.0), instead contextmanagers are used (not applicable to java, could be available in jdk7 with TWR).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              niklas Niklas Gustavsson
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: