deft
deft copied to clipboard
High performance non blocking web framework
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...
Exception in thread "I/O-LOOP" java.nio.channels.CancelledKeyException at sun.nio.ch.SelectionKeyImpl.ensureValid(SelectionKeyImpl.java:55) at sun.nio.ch.SelectionKeyImpl.readyOps(SelectionKeyImpl.java:69) at java.nio.channels.SelectionKey.isAcceptable(SelectionKey.java:342) at org.deftserver.io.IOLoop.start(IOLoop.java:77) Would it be a reasonable solution to change the catch clause from catch(IOException e) to catch(Exception e)?
on deftserver.org - @Authenticated - pros/cons on using AsynchronousSocket over pure IOHandler - async http client? - "multi-threading"
The outcome after a discussion with github.com/inferno-: (In the current design) it's volatile to have fields in user defined RequestHandlers in conjunction with asynchronous calls. (intermediate request (to same RH)...
could be a useful resource: http://jetty.codehaus.org/jetty/jetty-6/xref/org/mortbay/jetty/security/SslSelectChannelConnector.html
If a server wants to start sending a response before knowing its total length (like with long script output), it might use the simple chunked transfer-encoding, which breaks the complete...
Run the benchmarks (https://github.com/rschildmeijer/deft-benchmark) against the newest version of Tornado (1.2 is latest) and node.js (0.4.1 is latest)
Another good point made by github/williame This is how we append data to the read buffer in the (buffered) AS. readBuffer.append(new String(buffer.array(), 0, buffer.position(), Charsets.US_ASCII)); It's probably a bad idea...