server-transform.c broken
-------------------------
Key: TS-975
URL: https://issues.apache.org/jira/browse/TS-975
Project: Traffic Server
Issue Type: Bug
Components: Plugins
Affects Versions: 3.1.0
Reporter: Otto van der Schaaf
Priority: Minor
While playing around with the server-transform plugin example, i noticed it
was broken. After some meddling around, i got it working again.
The changes are mainly that in some cases content-length was passed in
network-byte order where it shouldn't be.
Another fix was handling the TS_EVENT_IMMEDIATE event
in transform_write_event(). i currently perform
a TSVIOReenable(data->server_vio); on that event, and it seems to work.
However, I'm not sure at all if that is the correct thing to do, so if
anybody could help me out on that? :-).
I have tested the changed code with a custom echo server, and confirmed that
the plugin is actually sending and receiving to the echo server.
I added the working code.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira