nimdays icon indicating copy to clipboard operation
nimdays copied to clipboard

use tcp router with http port forwarding

Open geohuz opened this issue 6 years ago • 4 comments

I tried the code with forwarding to a http server, I first get the page displayed in browser, after several seconds I got the following error:

/nim-1.0.0/lib/pure/asyncfutures.nim(383)   read
  ]#
Exception message: index out of bounds, the container is empty
Exception type: [IndexError]

geohuz avatar Oct 18 '19 05:10 geohuz

I just tried and I can reproduce. definitely a bug.

xmonader avatar Oct 19 '19 04:10 xmonader

@xmonader do you have any idea on how to fix the issue, I just tried with newest 1.0.2 nim, still failed

geohuz avatar Oct 24 '19 10:10 geohuz

@geohuz I fixed it https://github.com/xmonader/nim-tcprouter/commit/6e6ab3bb7915c9a14b7fc68bec759b98b45636a0 not sure if it's a clean fix or not to be honest I sent it to the gitter chat for more help

xmonader avatar Oct 25 '19 20:10 xmonader

@xmonader sorry for the late reply, I just tested the lasted patch and it still failed with error output forever.

geohuz avatar Dec 12 '19 13:12 geohuz