So, I'm trying to run a following pion library example in order to make a simple webservice: Pion example
The code is compiled using following makefile:
CC=g++
PRE_ARGS+=-fpermissive
POST_ARGS+= -lpion -lboost_thread-mt -lssl -lcrypto
all: release
release:
$(CC) -O0 -std=c++11 -fPIC -g -m64 $(PRE_ARGS) main.cpp -o main.a $(POST_ARGS)
It compiles OK, but when I'm trying to run it on my CentOS 7, trying to access either localhost:12345/ or 127.0.0.1:12345/ or by my pc's ip addr: 10.102.102.1:12345/, the browser (using firefox 31.3.0) will do nothing, but try to load the page, with 'waiting for 10.102.102.1' message in the bottom bar.
The moment i kill the server by Ctrl+C, browser immediately stops trying to load the page, and puts the following error:
The connection to the server was reset while the page was loading.
If I'm trying to get it using curl, the same happens: curl just waits, and when I kill the server, curl returns with 'Connection reset by peer' error.
I'm kinda stumped. I've flushed iptables -F to check if it was the firewall, nothing. I've turned off proxy (as I have to use proxy in my job), still the same. Anybody can please help me?
Aucun commentaire:
Enregistrer un commentaire