The bug appears when trying to url-retrieve an url on localhost, like:
(url-retrieve "http://localhost:7070/api/services" (lambda (s) (switch-to-buffer (current-buffer))))
The funny thing is that changing localhost to 127.0.0.1 works. Even adding a line "127.0.0.1 foobar" in my /etc/hosts also fixed it.
No clue why is that,but anyway, it seems to be fixed in some development branch so I'm going to recompile my 22.214.171.124 to the latest one and see what happens.