-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Parser thread-safe (use new goxpp's base:xml state) (#202)
* Add a test to detect race conditions with Parser * Make Parser thread-safe (use new goxpp's base:xml state) This changeset implements xml:base resolution based on state maintained by the goxxp parser instead of using a shared urlStack. This allows Parser to be safely used concurrently. Depends on: mmcdole/goxpp#9 To test: `go test -race` * Depend on goxpp v1.1.0 Required for new thread-safe xml:base handling. * Fix ResolveHTML I had changed the name of UrlStack to BaseStack in the goxxp implementation.
- Loading branch information
Showing
8 changed files
with
115 additions
and
182 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
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
Oops, something went wrong.