touchcode / touchhttpd Goto Github PK
View Code? Open in Web Editor NEWAn iOS compatible Cocoa Web Server.
License: BSD 3-Clause "New" or "Revised" License
An iOS compatible Cocoa Web Server.
License: BSD 3-Clause "New" or "Revised" License
There are several packet boundaries that cause CChunkWriter to misparse a stream, all near the part of the stream where the next chunk length is parsed.
I've hacked together some ugly fixes for this for my own immediate needs, but it's not elegant, it's not in the style of the containing code, and it uses a different delegate. I also put together an exhaustive test, using a modified interface, to test all the cases.
This project hasn't seen any activity in a long time. Do you care about it any more? Is it worth me putting in the (non-trivial) effort to clean up the code, backport it to work with the existing delegate, adapt the tests, modernize the Xcode project to work with tests, etc.? Alternatively, I could simply publish a standalone chunk writer, or you could pull in the changes, or...?
I have attempted to clone the TouchHTTPD project from github, making sure to clone both the TouchXML and TouchFoundation projects to the same root directory as is specified in the directions. However, when I do, there are a number of compilation issues when trying to run the test projects. The references to TouchXML and TouchFoundation are showing missing. However, when I remove those references and then add them back in, there are still quite a few compilation problems.
Help?
clang: error: no such file or directory: '/Users/hugolarcherreis/Desktop/TouchCode-TouchHTTPD-a4b112e/Projects/iPhone WebDAV Server/../../Externals/TouchFoundation/Source/Base64Transcoder.c'
clang: error: no input files
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1
After building the iPhone WebDAV server sample, I found the sample server crashes immediately upon client connect.
It turns out that it's crashing with a bad memory access in CXMLNode.m::-(void) dealloc upon a xmlFreeNode() call.
if (_freeNodeOnRelease)
{
xmlFreeNode(_node);
}
Commenting out the xmlFreeNode() call allows clients to connect and interact with the server successfully. However, I don't know if this causing memory leaks or not.
I'm not sure whether to open this issue against TouchHTTPD or TouchXML. I figured to do it here since it's probably something in the sample code that's causing the crash.
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.