enet-npm icon indicating copy to clipboard operation
enet-npm copied to clipboard

Centos6.5 cpu 100%

Open iamluodong opened this issue 9 years ago • 6 comments

Windows platform is OK.but Centos have problem( use 64Bit node0.12.x,node4.4.x,node6.6.x same problem )

server:

self.enetserver = enet.createServer({
        address: {
            address : "0.0.0.0",
            port:  16882
        },
        peers: 256,
        channels: 2,
        down: 0,
        up: 0
    }

Client

  self.enetserver = enet.createServer({
        address: {
            address : "0.0.0.0",
            port: 16881
        },
        peers: 256,
        channels: 2,
        down: 0,
        up: 0
    }

I use this host connect server,send message by channel 0 ,Send three times.Server Sometimes redevie one or two,I restart client sample,The server no response. CPU 100%.

iamluodong avatar May 24 '16 05:05 iamluodong

If client use

enet.createClient({})

to communication with server,it ok.But I need use enet.createServer to bind spec port.

iamluodong avatar May 24 '16 07:05 iamluodong

Does changing peers/channels have any effect?

oldmud0 avatar May 24 '16 13:05 oldmud0

no effect.I use channel 0 or 1 cpu up to 100%

iamluodong avatar Jun 01 '16 04:06 iamluodong

The problem is enableCompression,when close the feature,the problem solve.

iamluodong avatar Jun 01 '16 04:06 iamluodong

Weird. Are all the libraries in your distribution up to date?

oldmud0 avatar Jun 01 '16 15:06 oldmud0

Yes,latest.

iamluodong avatar Jun 03 '16 06:06 iamluodong