Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major 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).

        Activity

        Anonymous created issue -
        Roger Schildmeijer made changes -
        Field Original Value New Value
        Issue Type Bug [ 1 ] New Feature [ 2 ]
        Priority Major [ 3 ]
        Roger Schildmeijer made changes -
        Fix Version/s 0.4.0 [ 12317348 ]
        Tony Stevenson made changes -
        Project Deft [ 12311521 ] Apache AWF [ 12313220 ]
        Key DEFT-148 AWF-148
        Reporter Niklas Gustavsson [ niklas ]
        Issue Type New Feature [ 2 ] Bug [ 1 ]
        Fix Version/s 0.4.0 [ 12317348 ]

          People

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

            Dates

            • Created:
              Updated:

              Development