forked from amoschov/TideSDK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TIDESK-574] Fix HTTPServer crashing issue.
Before we used the HTTPServerRequestHandler for the HTTPRequest object we exposed into Kroll. The issue is this object's lifetime is restricted by Poco to the handleRequest callback. Poco deletes this right after this method returns. Once the GC of the interpreter runs it will try cleaning up this HTTPRequest native object, but it's already deleted thus a crash results. Moved HTTPRequest into it's own class to avoid the limited lifetime of the handler object. Note: we may see issues with the request/response object if they are accessed outside the callback's scope. Poco will most likely delete this after the handleRequest callback as well.
- Loading branch information
fairwinds
committed
Oct 27, 2012
1 parent
c12f424
commit 6b97e28
Showing
3 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters