tcp_tick(null) does not work with http_handler()


I am trying to incorporate both zconsole and http server together. I used the userblock_tcpipconsole and add the corresponding http code (copied from rabbitweb sample humidity.c) to it. In main I have the following at the end:

while (1) {

However, it seems like tcp_tick and http_handler cannot be run together. After I run the code, I can access the webserver but I cannot telnet to it anymore. After I comment the http_handler, I can telnet to the device again.

sorry guys, the problem is caused by the below macro
I limited to only 2 TCP connections hence both web and telnet cannot work together

After i increased it to 5 then both works, thanks