Forum Discussion
Jonathan_Edgewo
Nimbostratus
Mar 10, 2007http 204 response with http::close statement
When using a rule that responds to http requests with a 204 response code, if it use the http::close statement after the response statement, I get this error in the log:
TCL error: Rule http_204 HTTP_REQUEST - Operation not supported line 2 invoked from within HTTP::close
I was also getting this error in the local traffic log while the http::close statement was in the irule.
Once i removed http::close, there were no more errors. Anyone have an idea why this wouldn't work?
an example of the iRule is:
when HTTP_REQUEST {
HTTP::respond 204
HTTP::close
}
- bl0ndie_127134Historic F5 AccountHTTP::close has some problems when running with HTTP::respond. Try using TCP::close instead (it won't advertise 'Connection: close' but it does do the right thing). HTTP::respond is being enhanced in the next release to allow you to specify a close in that rule.
- hoolio
Cirrostratus
Hi bl0ndie,when HTTP_RESPONSE { HTTP::respond 200 content "responded" HTTP::respond 200 content "responded" Connection Close log local0. "TCP close" TCP::close log local0. "HTTP close" HTTP::close }
- pgroven_71837
Nimbostratus
Will the first example not close the connection? - hoolio
Cirrostratus
Here is the feedback on HTTP::close I received from F5 Support in C462406:when HTTP_REQUEST { HTTP::respond 204 TCP::close }
when HTTP_RESPONSE { HTTP::respond 200 content "test" clientside {TCP::close} }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects