bytewizer / microserver Goto Github PK
View Code? Open in Web Editor NEWModular embedded server built for TinyCLR OS.
License: MIT License
Modular embedded server built for TinyCLR OS.
License: MIT License
app.UseResourceFiles(new ResourceFileOptions()
{
ResourceManager = Resources.ResourceManager,
Resources = new Hashtable()
{
{ "/favicon.ico", Resources.BinaryResources.Favicon }
}
});
UseResourceFile() returns 0 content size no matter what the body content size is.
Something is strange. Memory Leak? Force GC? Objects not marked disposed? Memory increased by 6MB on the 100 message.
First Message - 300K
+-----------+ Pipe In +------------+
+-----------+------------+------------+
| Memory | Used | Free |
| Managed | 292,304 | 33,262,048 |
| Unmanaged | 0 | 0 |
+-----------+------------+------------+
+-----------+ Pipe Out +------------+
+-----------+------------+------------+
| Memory | Used | Free |
| Managed | 302,896 | 33,251,456 |
| Unmanaged | 0 | 0 |
+-----------+------------+------------+
| Memory Δ | Used Δ | Free Δ |
| Managed | 10,592 | -10,592 |
| Unmanaged | 0 | 0 |
+-----------+------------+------------+
100th Message - 6.2M
This is the memory after 100 http messages.
+-----------+ Pipe In +------------+
+-----------+------------+------------+
| Memory | Used | Free |
| Managed | 6,212,608 | 27,341,744 |
| Unmanaged | 0 | 0 |
+-----------+------------+------------+
+-----------+ Pipe Out +------------+
+-----------+------------+------------+
| Memory | Used | Free |
| Managed | 6,221,840 | 27,332,512 |
| Unmanaged | 0 | 0 |
+-----------+------------+------------+
| Memory Δ | Used Δ | Free Δ |
| Managed | 9,232 | -9,232 |
| Unmanaged | 0 | 0 |
+-----------+------------+------------+
Hi,
Don't know if you are aware of .NET nanoFramework.
We would like to use your HTTP server and port it to nanoFramework.
Wanted to check with your first if that's OK with you.
Thanks!
UseEndpoints()- EndpointRoutingMiddleware is invoking endpoints twice wasting resources. This example will be invoked twice if you put a break point on it and send one request.
endpoints.Map("/page", context =>
{
string response = "<doctype !html><html><head><title>Hello, world!" +
"</title><meta http-equiv='refresh' content='5'></head><body>" +
"<h1>" + DateTime.Now.Ticks.ToString() + "</h1></body></html>";
context.Response.Write(response);
});
Hello,
I'm working on a microserver implementing various services. I found your library and want to use it (for DHCP and DNS mainly). It's the only one thas has both services.
I have the following questions:
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.