You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@trafficserver.apache.org by GitBox <gi...@apache.org> on 2021/01/25 18:34:37 UTC
[GitHub] [trafficserver] dariodip opened a new pull request #5469: Update server_transform.c
dariodip opened a new pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469
Using TSIOBufferWaterMarkSet you can obtain a significant improvement concerning performance
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras closed pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras closed pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras commented on a change in pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras commented on a change in pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#discussion_r564028834
##########
File path: example/server_transform/server_transform.c
##########
@@ -237,6 +237,7 @@ transform_read(TSCont contp, TransformData *data)
data->input_reader = NULL;
data->server_vio = TSVConnRead(data->server_vc, contp, data->output_buf, data->content_length);
+ TSIOBufferWaterMarkSet( data->output_buf, data->content_length - sizeof( int ) ); // for performance
Review comment:
I think this is wrong. I think we are still in the process of reading in the full content from the request client. So the content_length would still be zero here. It is set after the read from the transform completes:
https://github.com/apache/trafficserver/blob/b6b61fbd3e232dbef010dc8b712bb2076510bd7f/example/plugins/c-api/server_transform/server_transform.c#L151
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras commented on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras commented on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767023025
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras removed a comment on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras removed a comment on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767023840
[approve ci Fedora]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras removed a comment on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras removed a comment on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767023025
[approve ci Fedora]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras commented on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras commented on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767023025
[approve ci fedora]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] bryancall commented on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
bryancall commented on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-764977936
@ywkaras is going to take a look at this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] bryancall commented on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
bryancall commented on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-764977936
@ywkaras is going to take a look at this.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras commented on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras commented on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-771735900
This appears to be logically incorrect, author may not be working on TS currently.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras removed a comment on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras removed a comment on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767023025
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras closed pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras closed pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras closed pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras closed pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras commented on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras commented on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-771735900
This appears to be logically incorrect, author may not be working on TS currently.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras edited a comment on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras edited a comment on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767023025
[approve ci Fedora]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras closed pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras closed pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras commented on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras commented on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767023840
[approve ci Fedora]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras commented on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras commented on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767077341
Not clear why CI is losing it's mind on this PR. Maybe it would help to rebase it by hand.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras edited a comment on pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras edited a comment on pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#issuecomment-767023025
[approve ci Fedora]
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [trafficserver] ywkaras commented on a change in pull request #5469: Update server_transform.c
Posted by GitBox <gi...@apache.org>.
ywkaras commented on a change in pull request #5469:
URL: https://github.com/apache/trafficserver/pull/5469#discussion_r564028834
##########
File path: example/server_transform/server_transform.c
##########
@@ -237,6 +237,7 @@ transform_read(TSCont contp, TransformData *data)
data->input_reader = NULL;
data->server_vio = TSVConnRead(data->server_vc, contp, data->output_buf, data->content_length);
+ TSIOBufferWaterMarkSet( data->output_buf, data->content_length - sizeof( int ) ); // for performance
Review comment:
I think this is wrong. I think we are still in the process of reading in the full content from the request client. So the content_length would still be zero here. It is set after the read from the transform completes:
https://github.com/apache/trafficserver/blob/b6b61fbd3e232dbef010dc8b712bb2076510bd7f/example/plugins/c-api/server_transform/server_transform.c#L151
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org