fmayer / asynchia Goto Github PK
View Code? Open in Web Editor NEWminimalist asynchronous networking library
Home Page: http://segfaulthunter.github.com/asynchia/
License: GNU Lesser General Public License v3.0
minimalist asynchronous networking library
Home Page: http://segfaulthunter.github.com/asynchia/
License: GNU Lesser General Public License v3.0
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
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
the documentation should be updated to reflect the api changes.
get_named_tempfile of test_ee bugged on Windows as it auto-closes the temporary file. This can be fixed by writing our own NamedTemporaryFile.
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
All fail with the same exception: error: [Errno 10035] A non-blocking socket operation could not be completed immediately (that is WSAEWOULDBLOCK).
The OS is a Windows XP Professional SP 3, the used branch is master/tip. Output of the test run is available at http://bpaste.net/show/13777/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.