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

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -