Code Monkey home page Code Monkey logo

asynchia's People

Contributors

fmayer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

asynchia's Issues

CPU usage

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

Closing transport raises Exception

Calling close on a connected SocketTransport with the SendAll-Mixin raises socket.error:

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/asynchia/init.py", line 181, in write_obj
obj.handle_write()
File "/usr/lib/python2.7/site-packages/asynchia/init.py", line 617, in handle_write
sent = super(SendallTrait, self).send(self.buf)
File "/usr/lib/python2.7/site-packages/asynchia/__init
.py", line 495, in send
return self.socket.send(data, flags)
File "/usr/lib/python2.7/socket.py", line 170, in _dummy
raise error(EBADF, 'Bad file descriptor')
error: [Errno 9] Bad file descriptor

Python 2.7, asynchia 0.1.3, Archlinux

Error in test-suite.

Exception in thread Thread-6:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in *bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(_self.__args, _self.__kwargs)
File "build/bdist.linux-x86_64/egg/asynchia/test/test_core.py", line 106, in ctx
hand.set_writeable(True)
File "build/bdist.linux-x86_64/egg/asynchia/maps.py", line 54, in __exit

self.socket_map.end_interrupt(self.changeflags)
File "build/bdist.linux-x86_64/egg/asynchia/maps.py", line 131, in end_interrupt
self.controlsender.send(b('e'))
error: [Errno 9] Bad file descriptor

.Exception in thread Thread-7:
Traceback (most recent call last):
File "/usr/lib/python2.6/threading.py", line 532, in __bootstrap_inner
self.run()
File "/usr/lib/python2.6/threading.py", line 484, in run
self.__target(_self.__args, *_self.__kwargs)
File "build/bdist.linux-x86_64/egg/asynchia/test/test_core.py", line 101, in std
mo.end_interrupt(True)
File "build/bdist.linux-x86_64/egg/asynchia/maps.py", line 130, in end_interrupt
self.controlsender.recv(1)
error: [Errno 9] Bad file descriptor

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.