Netty 4, use the current thread for an HTTP client -


i write http client, using netty 4, not requires creation of additional thread.

i started working httpsnoopclient , tried replacing:

eventloopgroup group = new nioeventloopgroup(); 

with:

eventloopgroup group = new nioeventloopgroup(1, new executor() {     public void execute(runnable command) {         command.run();     } }); 

but program hangs on:

channelfuture f = bootstrap.connect(host, port); 

the netty in action book not mention such possibility had hope (setting appropriate callbacks or listeners here , there...). right wondering if possible.

thank in advance hint.

no it's not possible thread used block on selector, need @ least 1 thread.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -