Shindig
  1. Shindig
  2. SHINDIG-1338

using shindig in a standalone PHP server : a minimal patch

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.0
    • Fix Version/s: 1.0.2
    • Component/s: PHP
    • Environment:
      GNU/Linux

      Description

      Hi,

      While implementing a standalone PHP server to handle a large number of simultaneous makeRequest with a small memory footprint ( necessary for web applications using long polling ), I had to apply the attached patch to PHP shindig to make it work. In a nutshell the patch addresses the following issues:

      • wrap echo / print / die functions so that they can be overriden by the standalone PHP server
      • cache some objects used during the call of the doPost function of ProxyHandler so that they are not rebuilt when doPost is called a second time
      • fix a few PHP deprecation required by E_STRICT
      • add the public_cer configuration string to use instead of the computed string based on HTTP_HOST

      I believe this fix is simple enough to be applied to later versions of PHP shindig. However, because a number of servers are probably still running on PHP shindig 1.0, publishing a patch against this specific version might be useful.

      A practical use of this patch can be found at http://opensocial.pokersource.info/server

      1. s.patch
        12 kB
        Loic Dachary

        Activity

        Ryan Baxter made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Won't Fix [ 2 ]
        Hide
        Ryan Baxter added a comment -

        Moved PHP to attic so we are closing this issue for now

        Show
        Ryan Baxter added a comment - Moved PHP to attic so we are closing this issue for now
        Gavin made changes -
        Workflow jira [ 12511399 ] patch-available, re-open possible [ 12629654 ]
        Paul Lindner made changes -
        Fix Version/s 1.0.2 [ 12315057 ]
        Fix Version/s 1.0 [ 12313553 ]
        Loic Dachary made changes -
        Field Original Value New Value
        Attachment s.patch [ 12445064 ]
        Show
        Loic Dachary added a comment - It can also be browsed online at http://opensocial.pokersource.info/server/changeset?old_path=%2Fshindig&old=4&new_path=%2Fshindig&new=88
        Loic Dachary created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Loic Dachary
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development