Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

hmm, i tried running that against the go client but the client wouldn't connect.

  dial tcp 127.0.0.1:1201: connection refused
i changed 'localhost' to '127.0.0.1' and now I see a whole lot of

  dial tcp 127.0.0.1:1201: connection reset by peer
some connections were successful though.


The first one may be your localhost not mapped to 127.0.0.1 ? The second one may be a problem of backlog size. On my system (ruby 2.1.0dev (2013-08-06) [x86_64-darwin12.4.0]) it's 128 and there's no reset. But you can manual change it with s.listen(1000)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: