[Olsr-dev] hanging http-requests / httpinfo+json / v9.0.3 (STILL in git)

Ferry Huberts (spam-protected)
Thu Dec 17 11:19:14 CET 2015


Can you try to get with an actual command, like /all?

so wget http://127.0.0.1:2006/all

On 17/12/15 10:51, Bastian Bittorf wrote:
> * Henning Rogge <(spam-protected)> [17.12.2015 10:39]:
>>> starting the daemon works and i see routes, but
>>> query :80 for httpinfo or json hangs infinitely.
>>
>> I assume you switched the httpinfo or the jsoninfo port to 80, right?
>> Because none of the plugins listens to the port by default.
>
> sorry, a typo - ofcourse port 2006/9090
> interesting: the error happens again with recent git:
>
>>> but: recent git (with the reworks from ferry) works!
>>> thanks for that!
>>
>> I don't think Ferry changed anything major in the httpinfo.
>>
>> Does the whole routing agent hangs up or is it just your http/telnet request?
>
> only the request:
> (spam-protected):~ wget -SO - http://127.0.0.1:2006
> converted 'http://127.0.0.1:2006' (ANSI_X3.4-1968) ->
> 'http://127.0.0.1:2006' (UTF-8)
> --2015-12-17 10:46:55--  http://127.0.0.1:2006/
> Connecting to 127.0.0.1:2006... connected.
> HTTP request sent, awaiting response... Read error (Connection reset by
> peer) in headers.
> Retrying.
>
> --2015-12-17 10:46:56--  (try: 2)  http://127.0.0.1:2006/
> Connecting to 127.0.0.1:2006... connected.
> HTTP request sent, awaiting response... Read error (Connection reset by
> peer) in headers.
> Retrying.
>
> [...and so on...]
>
> this is the network (a vserver)
> (spam-protected):~ ip a
> 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN
>      link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
>      inet 127.0.0.1/8 scope host lo
>      inet6 ::1/128 scope host
>         valid_lft forever preferred_lft forever
> 2: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN
>      link/void
>      inet 127.0.0.2/32 scope host venet0
>      inet 185.119.255.186/32 brd 185.119.255.186 scope global venet0:0
>      inet 10.63.1.1/27 scope global venet0
>      inet6 2a06:8ec0:4:10d::c658/64 scope global
>         valid_lft forever preferred_lft forever
> 3: gre0: <NOARP> mtu 1476 qdisc noop state DOWN
>      link/gre 0.0.0.0 brd 0.0.0.0
> 4: gretap0: <BROADCAST,MULTICAST> mtu 1476 qdisc noop state DOWN qlen 1000
>      link/ether 00:00:00:00:00:00 brd ff:ff:ff:ff:ff:ff
> 6: tap276: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1420 qdisc pfifo_fast
> state UNKNOWN qlen 500
>      link/ether 9a:67:bb:46:7d:ae brd ff:ff:ff:ff:ff:ff
>      inet 10.63.21.121/30 scope global tap276
>      inet6 fe80::9867:bbff:fe46:7dae/64 scope link
>         valid_lft forever preferred_lft forever
>
> and this the olsr-conf:
> (spam-protected):~ cat /etc/olsrd.conf
> MainIp		10.63.1.1
> DebugLevel	0
>
> LoadPlugin "olsrd_txtinfo.so.0.1"
>   {
> 	PlParam "accept" "127.0.0.1"
> 	PlParam "listen" "0.0.0.0"
> 	PlParam "port" "2006"
>   }
>
> LoadPlugin "olsrd_jsoninfo.so.0.0"
>   {
> 	PlParam "accept" "127.0.0.1"
> 	PlParam "listen" "0.0.0.0"
> 	PlParam "port" "9090"
>   }
>
> LoadPlugin "olsrd_nameservice.so.0.3"
>   {
> 	PlParam "name" "tulpe-amsterdam"
> 	PlParam "service" "http://tulpe-amsterdam:80|tcp|VPN-hideandseek::5001"
>   }
>
> Hna4
>   {
> 	0.0.0.0 0.0.0.0		# we have internet
>   }
>
> Interface "tap276" "venet0"
>   {
> 	Ip4Broadcast 255.255.255.255
> 	HelloInterval 4.0
> 	HelloValidityTime 175.0
> 	TcValidityTime 700.0
> 	TcInterval 3.0
> 	MidInterval 35.0
> 	MidValidityTime 700.0
> 	HnaInterval 14.0
> 	HnaValidityTime 175.0
>   }
>
> here the strace:
> http://185.119.255.186/1.txt
>
> bye, bastian
>
> PS: i can provide SSH-access (not a production server)
>
>

-- 
Ferry Huberts



More information about the Olsr-dev mailing list