moscajs / mosca

MQTT broker as a module
mosca.io
3.2k stars 508 forks source link

Message write EPIPE in multiple conections #579

Closed frsisalima closed 7 years ago

frsisalima commented 7 years ago

It appears in the following message when I generate multiple connections, is it normal? How many connections can I keep with fly server, thanks.

MESSAGE IN CONSOLE:

{"pid":17339,"hostname":"mi-ip","name":"mosca","level":40,"time":1481647873900,"msg":"write EPIPE","type":"Error","stack":"Error: write EPIPE\n at exports._errnoException (util.js:1036:11)\n at WriteWrap.afterWrite (net.js:794:14)","client":"cliente-1365","v":1}

mcollina commented 7 years ago

That's ok. a connection with a client broke.

How many connections is limited by your OS configuration, your RAM, and the overall message throughput. It's hard to predict, you will have to benchmark.

You can configure the server using https://gist.github.com/mcollina/23c788bf2f7e8da10b9c

frsisalima commented 7 years ago

Thanks matteo I will be on the penny I think the message is shown with more than 5000 connections, because if then it can be a server configuration, I will follow your recommendations to check what happens, thank you. Greetings.

2016-12-14 6:50 GMT-05:00 Matteo Collina notifications@github.com:

That's ok. a connection with a client broke.

How many connections is limited by your OS configuration, your RAM, and the overall message throughput. It's hard to predict, you will have to benchmark.

You can configure the server using https://gist.github.com/ mcollina/23c788bf2f7e8da10b9c

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mcollina/mosca/issues/579#issuecomment-267015067, or mute the thread https://github.com/notifications/unsubscribe-auth/AXabzd194z7sErCjBdpHYAMQYfklGW0Nks5rH9f-gaJpZM4LL_ZO .