You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficserver.apache.org by masaori335 <gi...@git.apache.org> on 2016/08/10 03:14:52 UTC

[GitHub] trafficserver pull request #847: TS-4729: Remove dead assaignment in Http2St...

GitHub user masaori335 opened a pull request:

    https://github.com/apache/trafficserver/pull/847

    TS-4729: Remove dead assaignment in Http2Stream

    [TS-4729](https://issues.apache.org/jira/browse/TS-4729)

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/masaori335/trafficserver ts-4729

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/trafficserver/pull/847.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #847
    
----
commit dd48279f66d503312c3f3b5a1ad534bda5d3a65c
Author: Masaori Koshiba <ma...@apache.org>
Date:   2016-08-10T03:06:54Z

    TS-4729: Remove dead assaignment in Http2Stream

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request #847: TS-4729: Remove dead assaignment in Http2St...

Posted by jpeach <gi...@git.apache.org>.
Github user jpeach commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/847#discussion_r74273262
  
    --- Diff: proxy/http2/Http2Stream.cc ---
    @@ -509,7 +509,7 @@ Http2Stream::update_write_request(IOBufferReader *buf_reader, int64_t write_len,
             parent->connection_state.send_headers_frame(this);
     
             // See if the response is chunked.  Set up the dechunking logic if it is
    -        is_done = this->response_initialize_data_handling();
    +        this->response_initialize_data_handling();
    --- End diff --
    
    Should you check or assert on the return value here? I would guess that bad things happen if ``response_initialize_data_handling`` returns false.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #847: TS-4729: Remove dead assaignment in Http2Stream

Posted by zwoop <gi...@git.apache.org>.
Github user zwoop commented on the issue:

    https://github.com/apache/trafficserver/pull/847
  
    I assume is_done is still in use elsewhere. 
    \U0001f44d 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #847: TS-4729: Remove dead assaignment in Http2Stream

Posted by jpeach <gi...@git.apache.org>.
Github user jpeach commented on the issue:

    https://github.com/apache/trafficserver/pull/847
  
    Also, there's a typo in the commit subject line ;)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request #847: TS-4729: Remove dead assaignment in Http2St...

Posted by bryancall <gi...@git.apache.org>.
Github user bryancall commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/847#discussion_r74278773
  
    --- Diff: proxy/http2/Http2Stream.cc ---
    @@ -509,7 +509,7 @@ Http2Stream::update_write_request(IOBufferReader *buf_reader, int64_t write_len,
             parent->connection_state.send_headers_frame(this);
     
             // See if the response is chunked.  Set up the dechunking logic if it is
    -        is_done = this->response_initialize_data_handling();
    +        this->response_initialize_data_handling();
    --- End diff --
    
    The boolean is not related to if `response_initialize_data_handling` was successful or not, which is bad coding in my opinion.  It is information about if the response was chunked and if it is finished.
    
    The return value for `response_initialize_data_handling` should be changed.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #847: TS-4729: Remove dead assaignment in Http2Stream

Posted by masaori335 <gi...@git.apache.org>.
Github user masaori335 commented on the issue:

    https://github.com/apache/trafficserver/pull/847
  
    #849 is the new one by @shinrich 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request #847: TS-4729: Remove dead assaignment in Http2St...

Posted by shinrich <gi...@git.apache.org>.
Github user shinrich commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/847#discussion_r74317308
  
    --- Diff: proxy/http2/Http2Stream.cc ---
    @@ -509,7 +509,7 @@ Http2Stream::update_write_request(IOBufferReader *buf_reader, int64_t write_len,
             parent->connection_state.send_headers_frame(this);
     
             // See if the response is chunked.  Set up the dechunking logic if it is
    -        is_done = this->response_initialize_data_handling();
    +        this->response_initialize_data_handling();
    --- End diff --
    
    Actually, the is_done's between response_intiailize_data_handling and response_process_data are related.  If the response is not chunked both will always return false.  If they are chunked, they both return true if the entire chunk was represent and could be read.
    
    It looks like my patch to open source missed the check on the return from this->response_initialize_data_handling.  There should be
    
    if (is_done) {
      send_event = VC_EVENT_WRITE_COMPLETE;
    }
    
    I'll add that and set up a new PR.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #847: TS-4729: Remove dead assaignment in Http2Stream

Posted by atsci <gi...@git.apache.org>.
Github user atsci commented on the issue:

    https://github.com/apache/trafficserver/pull/847
  
    FreeBSD build *successful*! See https://ci.trafficserver.apache.org/job/Github-FreeBSD/514/ for details.
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver issue #847: TS-4729: Remove dead assaignment in Http2Stream

Posted by atsci <gi...@git.apache.org>.
Github user atsci commented on the issue:

    https://github.com/apache/trafficserver/pull/847
  
    Linux build *successful*! See https://ci.trafficserver.apache.org/job/Github-Linux/411/ for details.
     



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] trafficserver pull request #847: TS-4729: Remove dead assaignment in Http2St...

Posted by masaori335 <gi...@git.apache.org>.
Github user masaori335 closed the pull request at:

    https://github.com/apache/trafficserver/pull/847


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---