TCP networking implementation for the Savi standard library.
savi-lang / tcp Goto Github PK
View Code? Open in Web Editor NEWTCP networking implementation for the Savi standard library.
License: BSD 3-Clause "New" or "Revised" License
TCP networking implementation for the Savi standard library.
License: BSD 3-Clause "New" or "Revised" License
At the time the specs were written, the Spec
library had no way to asynchronously assert nor even to have an example that ran past its initial synchronous execution. As a result, the specs we have now just print some output about what happens with the sockets asynchronously, but a human actually has to read the output to know if something went wrong or not.
As of savi-lang/Spec#5 the Spec
library now has these asynchronous features, so we can update our specs to actually assert things.
On Linux, when using the examples/http
server and testing it with a large number of simultaneous connections, I commonly see one thread get stuck in an infinite loop, and the server fails to accept more connections.
After stepping through the issue in lldb
, I can see that the TCPListener
actor gets stuck in an infinite loop when it tries to run pony_os_accept
to accept a connection and that call fails with EMFILE
("too many open files") as the errno
. The TCPListener
is currently written to naively assume that any failure can be considered spurious, and it tries again to accept a connection. In this failure mode, trying again to accept a new connection will not help - it will always fail. Hence, it gets stuck in an infinite retry loop.
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.