Serve static pages efficiently. Fix #53#118
Serve static pages efficiently. Fix #53#118marcoskirsch merged 5 commits intomarcoskirsch:masterfrom
Conversation
the 6th image cannot be served as the esp does not open more than 5 connections at the same time
|
anybody willing to review this? |
|
I will soon, my bad. |
|
Err, while this achieves the goal, can't you achieve most changes from within httpserver-static.lua? You can access the socket within bufferedConnection, and yield there - no buffer used, no problem. The chunks are 1024 big, but have no buffer to worry about since it's never filled |
|
The main advantage in this PR is to get rid of the coroutine overhead which seems to be quite large. |
Allows to load up to 5 static URLs at the same time.
The limit of 5 seems to be imposed by the system.
This should at least partially fix #53