about summary refs log tree commit diff stats
path: root/src/server/buffer.nim
Commit message (Collapse)AuthorAgeFilesLines
...
* Add precnum support to more functionsbptato2023-09-261-6/+18
|
* buffer: make readFromFd work with pipesbptato2023-09-231-4/+17
|
* buffer: make clone fork()bptato2023-09-231-19/+144
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Makes e.g. on-page anchor navigation near-instantaneous. Well, as instantaneous as a fork can be. In any case, it's a lot faster than loading the entire page anew. This involves duplicating open resources (file descriptors, etc.), which is not exactly trivial. For now we have a huge clone() procedure that does an ok-ish job at it, but there remains a lot of room for improvement. e.g. cloning is still broken in some cases: * As noted in the comments, TeeStream'ing the input stream for any buffer is a horrible idea, as readout in the cloned buffer now depends on the original buffer also reading from the stream. (So e.g. if you clone, then kill the old buffer without waiting for the new one to load, the new buffer gets stuck.) * Timeouts/intervals are broken in cloned buffers. The timeout module probably needs a redesign to fix this. * If you clone before connect2, the cloned buffer gets stuck. The previous solution was even worse (i.e. broken in more cases), so this is still an improvement. For example, this fixes some issues with mailcap handling (removes the "set the Content-Type of htmloutput buffers to text/html" hack), does not reload all resources, does not completely break if the buffer is cloned during loading, etc.
* buffer: support <a name=... for anchor navigationbptato2023-09-201-3/+3
|
* loader: add gopher supportbptato2023-09-201-2/+3
| | | | works
* update chamebptato2023-09-191-1/+2
| | | | and with that, resolve the unknown input type issue
* Fix compilation with --assertions:offbptato2023-09-151-1/+2
| | | | | Remove side effects from assert statements. The flag is not used currently, but let's not depend on that.
* buffer: directly pass EncoderStream to parseStylesheetbptato2023-09-141-3/+2
| | | | No need for that extra copy into a StringStream.
* Update submodulesbptato2023-09-141-1/+3
|
* move around more modulesbptato2023-09-141-0/+1481
* ips -> io/ * loader related stuff -> loader/ * tempfile -> extern/ * buffer, forkserver -> server/ * lineedit, window -> display/ * cell -> types/ * opt -> types/