DNS , file length, and other async issues.

Kevin Burton burtonator at gmail.com
Thu Oct 20 14:06:20 EDT 2011


> you are right calling File.length this way is prolly not a good thing.
> You would be better of to add an ExecutionHandler in front of it which
> will offload the task to an other ThreadPool and so keep the
>

It's a shame that it would make the examples difficult to grok but doing the
right thing in the examples is probably the right thing.


> IO-Worker-Thread not blocked.
>
> The same is true for DNS stuff.
>
> There is also a async DNS provider called dnsjnio which use dnsjava.
> This allows you todo DNS queries in a non-blocking manner.
>
>
I was looking at dnsjava (which seems to be as old as time)  ... I'll have
to take a look at this.

 We have the need for a decent HTTP proxy for some internal stuff here at
work and we aren't really happy with Node.js or tinyproxy or the other
options.

Doing something like this in netty would be straight forward but I'd want it
to do DNS, etc correctly.

Kevin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/netty-users/attachments/20111020/cc16c2c9/attachment.html 


More information about the netty-users mailing list