Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

number of websocket connections #218

Closed
swuy opened this issue Jun 19, 2015 · 3 comments
Closed

number of websocket connections #218

swuy opened this issue Jun 19, 2015 · 3 comments

Comments

@swuy
Copy link

swuy commented Jun 19, 2015

Hello!
I have kamailio installed as a part of kazoo server (kamailio server and server with other apps) with enabled websocket role. As I see in .cfg file there is default restriction for connection from one IP - 50, so 51st client from the same IP address get 403 error. So

  1. How can I see how many websocket connections from one IP I have? (Except log messages in kamailio.log)

  2. Our kamailio work fine for week and a half, after that I see messages in kamailio log:
    "[Some_IP_address] is at the maximum allowable sockets per IP, rejecting request for another websocket"

I checked connections from OS and saw that there is one connection not fifty.
lsof -ni TCP:8080 | grep [Some_IP_address]
kamailio 30673 kamailio 132u IPv4 4667683 0t0 TCP [Some_IP_address]:webcache->[Some_IP_address]:57688 (ESTABLISHED)

After restarting kamailio all work fine for another week and a half and repeat.
Is it some bug?

@kamailio-sync
Copy link

Hi,

"kamctl fifo ws.dump" shows you all websocket connections kamailio knows
about.

On 19/06/15 17:49, swuy wrote:

Hello!
I have kamailio installed as a part of kazoo server (kamailio server
and server with other apps) with enabled websocket role. As I see in
.cfg file there is default restriction for connection from one IP -
50, so 51st client from the same IP address get 403 error. So

  1. How can I see how many websocket connections from one IP I have?
    (Except log messages in kamailio.log)

  2. Our kamailio work fine for week and a half, after that I see
    messages in kamailio log:
    "[Some_IP_address] is at the maximum allowable sockets per IP,
    rejecting request for another websocket"

I checked connections from OS and saw that there is one connection not
fifty.
lsof -ni TCP:8080 | grep [Some_IP_address]
kamailio 30673 kamailio 132u IPv4 4667683 0t0 TCP
[Some_IP_address]:webcache->[Some_IP_address]:57688 (ESTABLISHED)

After restarting kamailio all work fine for another week and a half
and repeat.
Is it some bug?


Reply to this email directly or view it on GitHub
#218.


sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

@miconda
Copy link
Member

miconda commented Jun 25, 2015

The point 2) seems to be specific to Kazoo configuration (as I searched for the log message on the web and pointed there), so it is not inside kamailio code but in that config file you are using. On a quick look, there is a counter of connections stored in a hash table that might not be properly managed. You have to address the issue to kazoo project.

@miconda miconda closed this as completed Jun 25, 2015
@swuy
Copy link
Author

swuy commented Jun 25, 2015

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants