fmayer / asynchia

minimalist asynchronous networking library

Home Page:http://segfaulthunter.github.com/asynchia/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CPU usage

Dav1dde opened this issue · comments

import asynchia
import asynchia.maps

smap = asynchia.maps.DefaultSocketMap()
handler = asynchia.Handler(asynchia.SocketTransport(smap))
smap.run()

This little snippet raises the CPU-usage of one core to 100%. This happens with the EPollSocketMap, SelectSocketMap and the PollSocketMap

asynchia 0.1.3, python 2.7