[
https://issues.apache.org/jira/browse/TS-2553?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893870#comment-13893870
]
ASF subversion and git services commented on TS-2553:
-----------------------------------------------------
Commit d73d787820e844876c67d58e9bdb8b1fc711edda in branch refs/heads/master
from [~nottheoilrig]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=d73d787 ]
TS-2553: metalink: preserve the content length header
Copy the upstream nbytes (if known) downstream to preserve the
"Content-Length: ..." header. In that case there will be a
TS_EVENT_VCONN_WRITE_COMPLETE event from downstream before ntodo
is zero, so write the digest to the cache in
transform_vconn_write_complete(). If the upstream nbytes isn't
known until the end of the content, update the downstream nbytes
and reenable it to get it to send a TS_EVENT_VCONN_WRITE_COMPLETE
event. Fix some memory management.
> Fix a segfault in the Metalink plugin reported by Faysal Banna and preserve
> the Content-Length header
> -----------------------------------------------------------------------------------------------------
>
> Key: TS-2553
> URL: https://issues.apache.org/jira/browse/TS-2553
> Project: Traffic Server
> Issue Type: Bug
> Components: Plugins
> Reporter: Jack Bates
> Assignee: James Peach
> Fix For: 5.0.0
>
>
> Fix a segfault in the Metalink plugin reported by Faysal Banna:
> https://github.com/jablko/dedup/issues/1
> Copy the upstream nbytes (if known) downstream to preserve the Content-Length
> header.
> Improve comments in the plugin code.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)