coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
518 stars 260 forks source link

TCP Retransmissions problem #194

Open muratbeser opened 8 years ago

muratbeser commented 8 years ago

Env:

I had this slow response from CoovaJSON on the Kali but not on Windows Xp, so I had some tests and sniffing with Wireshark and I saw saw some TCP Retransmissions request.

And this is really not my thing is there someone can help about issue.

Response time test

root@kali:~/Desktop# ./time-response.pl 192.168.5.1:3990
[SLOW] Fri Jan  8 15:24:43 2016, http://192.168.5.1:3990/ping.html served in 133.164 s
[SLOW] Fri Jan  8 15:27:19 2016, http://192.168.5.1:3990/ping.html served in 156.060 s
Report for:            192.168.5.1:3990 at Fri Jan  8 15:27:19 2016
Total requests:        2 in 289.224 s
Failed requests:       0
Slow responses (>1s):  2 (slowest 156.059672 s at Fri Jan  8 15:27:19 2016)
Average response time: 144.612 s (0.007 req/s)
--------------------------------------------------------------------
root@kali:~/Desktop# 
root@kali:~/Desktop# ./time-response.pl 192.168.1.2
[SLOW] Fri Jan  8 15:27:52 2016, http://192.168.1.2/ping.html served in 0.085 s

Report for:            192.168.1.2 at Fri Jan  8 15:29:11 2016
Total requests:        761 in 2.987 s
Failed requests:       761
Slow responses (>1s):  0 (slowest 0.085176 s at Fri Jan  8 15:27:52 2016)
Average response time: 0.004 s (254.763 req/s)
--------------------------------------------------------------------

Wireshark CoovaJSON HTTP Request

https://gist.github.com/muratbeser/eb87d4346aa8199e4dce

muratbeser commented 8 years ago

I tried it from an other vhost its same result

root@haproxy:~# wget -vd http://192.168.5.1:3990/json/status
DEBUG output created by Wget 1.16 on linux-gnu.

URI encoding = ‘UTF-8’
--2016-01-08 17:28:07--  http://192.168.5.1:3990/json/status
Connecting to 192.168.5.1:3990... connected.
Created socket 4.
Releasing 0x0000000001f9c740 (new refcount 0).
Deleting unused 0x0000000001f9c740.

---request begin---
GET /json/status HTTP/1.1
User-Agent: Wget/1.16 (linux-gnu)
Accept: */*
Host: 192.168.5.1:3990
Connection: Keep-Alive

---request end---
HTTP request sent, awaiting response... 
---response begin---
HTTP/1.0 200 OK
Connection: close
Pragma: no-cache
Expires: Fri, 01 Jan 1971 00:00:00 GMT
Cache-Control: no-cache, must-revalidate
P3P: CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT"
Content-Length: 287
Content-Type: text/javascript

---response end---
200 OK
Length: 287 [text/javascript]
Saving to: ‘status.2’

status.2                                                          100%[============================================================================================================================================================>]     287  --.-KB/s   in 0s     

Closed fd 4
2016-01-08 17:28:33 (31.6 MB/s) - ‘status.2’ saved [287/287]