fix a bug where it was not possible to bind multiple sockets to the same http server; test that binding multiple sockets works. svn:r769