FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=17457&edit=1

ID: 17457
Updated by: wgcrouch@gmail.com
Reported By: wgcrouch at gmail dot com
Summary: No way to close connection without exiting
Status: Open
Type: Bug
Package: Net_Server
Operating System: Fedora 12
Package Version: 1.0.2
PHP Version: 5.2.12
Roadmap Versions:
New Comment:

This relates to Net_Server_Driver_Fork


Previous Comments:
------------------------------------------------------------------------

[2010-06-02 12:07:09] wgcrouch

Description:
------------
The closeConnection() and shutDown() methods both call exit.
This means there is no way to close the connection to the
client, but continue running the script.

You may not want the client to wait after they have submitted
a request.

I don't see the point of the shutDown function as it is just an
alias for closeConnection().

In bug #1792 it seems the exit() was added to
closeConnection(). It would have made more sense for the
user to just use the shutDown method and leave
closeConnection as it was.

------------------------------------------------------------------------

Search Discussions

  • Daniel Oconnor at Jun 2, 2010 at 11:37 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=17457&edit=1

    ID: 17457
    Updated by: daniel.oconnor@gmail.com
    Reported By: wgcrouch at gmail dot com
    Summary: No way to close connection without exiting
    Status: Open
    Type: Bug
    Package: Net_Server
    Operating System: Fedora 12
    Package Version: 1.0.2
    PHP Version: 5.2.12
    -Assigned To:
    +Assigned To: cweiske
    Roadmap Versions:
    New Comment:

    -Assigned To:
    +Assigned To: cweiske



    Previous Comments:
    ------------------------------------------------------------------------

    [2010-06-02 12:21:05] wgcrouch

    This relates to Net_Server_Driver_Fork

    ------------------------------------------------------------------------

    [2010-06-02 12:07:09] wgcrouch

    Description:
    ------------
    The closeConnection() and shutDown() methods both call exit.
    This means there is no way to close the connection to the
    client, but continue running the script.

    You may not want the client to wait after they have submitted
    a request.

    I don't see the point of the shutDown function as it is just an
    alias for closeConnection().

    In bug #1792 it seems the exit() was added to
    closeConnection(). It would have made more sense for the
    user to just use the shutDown method and leave
    closeConnection as it was.

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 2, '10 at 11:28a
activeJun 2, '10 at 11:37p
posts2
users2
websitepear.php.net

2 users in discussion

Daniel Oconnor: 1 post Wgcrouch: 1 post

People

Translate

site design / logo © 2022 Grokbase