RanniSch / webserv

0 stars 2 forks source link

Port issues: In the configuration, try to setup the same port multiple times. It should not work. #65

Closed RanniSch closed 10 months ago

RanniSch commented 10 months ago

Testresult after opening 3 times port 8000 in the default.config file:

./webserv default.conf

Information: cannot open your config file. Will take default Config. TestServer constructor called! Start Listening... Start Listening... bind failed... : Address already in use

MaxIhme commented 10 months ago

config: server { listen 8000 8080 8000; ... }

./webserv conf/webserve.conf TestServer constructor called! Start Listening... Error: Binding failed make: *** [e] Error 1

RanniSch commented 10 months ago

I also ran @MaxIhme example with valgrind and I get again the same amount of reachable memory (no control + c needed) image

without valgrind same result: ./webserv default.conf Information: cannot open your config file. Will take default Config. TestServer constructor called! Start Listening... Start Listening... Start Listening... Error: Binding failed

RanniSch commented 10 months ago

I would say, that's fine image