laduramvishnoi / kryonet

Automatically exported from code.google.com/p/kryonet
0 stars 0 forks source link

server select : 100% cpu (round 3) #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Problem similar to issue#19 

The select still returns something !=0 when there is no network activity
The exception line 320 is thrown :

https://code.google.com/p/kryonet/source/browse/trunk/kryonet/src/com/esotericso
ftware/kryonet/Server.java?spec=svn111&r=111#320

The sleep is not reached because select!=0 and the connection is not closed 
because of the exception thrown.
maybe the connection needs to be closed there ?

I don't know if i can easily reproduce the problem

Original issue reported on code.google.com by Piladong@gmail.com on 1 Jun 2012 at 4:03

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r113.

Original comment by nathan.s...@gmail.com on 1 Jun 2012 at 9:02

GoogleCodeExporter commented 9 years ago
I think that should do it, thanks. I don't think there are any more scenarios 
where a selected key is not handled.

Original comment by nathan.s...@gmail.com on 1 Jun 2012 at 9:03

GoogleCodeExporter commented 9 years ago
You forgot a 'println' line 165 

Original comment by Piladong@gmail.com on 2 Jun 2012 at 1:58

GoogleCodeExporter commented 9 years ago
Wow, I'm a noob. :(

Original comment by nathan.s...@gmail.com on 2 Jun 2012 at 9:48