[ 
https://issues.apache.org/jira/browse/SHINDIG-677?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chris Chabot resolved SHINDIG-677.
----------------------------------

    Resolution: Fixed
      Assignee: Chris Chabot

I'm afraid I ended up committing a slightly different fix:

The Zend URI parser (and anything in the zend libs really) are so heavy handed 
code wise, that using Zend's URI validation reduced the amount of proxied 
requests / second by about 50% (from ~600 to ~300 on my MPB), and that's while 
running opcode-caches etc.

So instead I've implemented the function using parse_url, which isn't as strict 
as Zend's uri parser (it accepts quite a bit of cruft and only rejects really 
broken urls), but it doesn't have any negative performance impacts.. 50% was to 
much of a performance hit for a slightly better validation.





> ValidateUrl using Zend url validation in ProxyHandler 
> ------------------------------------------------------
>
>                 Key: SHINDIG-677
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-677
>             Project: Shindig
>          Issue Type: Improvement
>          Components: Gadget Rendering Server (PHP)
>            Reporter: impetus technologies
>            Assignee: Chris Chabot
>         Attachments: ProxyHandler.patch
>
>
> validateUrl() funaction was empty and expected some code to check URL. I have 
> used Zend url to check the url. 
> Patch is attached. Kindly review.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to