Forum Discussion
Sideband connection only receives 933 bytes?
Hey Aaron,
Thanks for responding.
When I do a capture, I see the entire payload being returned through the virtual server that the sideband connection uses. Although, the variable that gets set from the recv command only contains the first 933 bytes, consistently. Specifically, the response data contains a Location header of about 2000 bytes. The variable that recv sets only contains about half of the Location header data. None of the other headers are contained in the variable either.
Below is some code I've been testing with. I lifted almost all of it from your Sideband example iRule. Unfortunately, the response data is lacking a Content-Length header, so I'm trying to get that changed in the server side code. In the mean time, I'm trying to pull different data chunk sizes by specifying the bytes, but no go.
In the logs, you notice that recv_data2 contains a few more bytes than the peek output - 20 bytes to be exact - same number of bytes as "HTTP/1.1 201 Created", which becomes recv_data1. So both the peek and recv are both returning 933 bytes (URI has been trimmed, so output below isn't exactly 933 bytes). You can see that I upped the number of iterations through the loop, as well as the peek timeout. Every interation through the for loop still shows exactly the same data in the peek output.
if {[catch {connect -timeout 1000 -idle 300 -status conn_status virtual_server_name} conn] == 0 && $conn ne ""}{
set conn_info [connect info -idle -status $conn]
set send_info [send -timeout 3000 -status send_status $conn $send_str]
set start [clock clicks -milliseconds]
for {set i 0} {$i <= 100} {incr i} {
set recv_data [recv -peek -status peek_status -timeout 100 5000 $conn]
log local0. "Peek: $recv_data"
}
set recv_data1 [recv -eol -timeout 5000 -status recv_info $conn]
set recv_data2 [recv -eol -timeout 5000 -status recv_info $conn]
set recv_data3 [recv -eol -timeout 5000 -status recv_info 1000 $conn]
set recv_data4 [recv -eol -timeout 5000 -status recv_info 2000 $conn]
log local0. "Recv1: $recv_data1"
log local0. "Recv2: $recv_data2"
log local0. "Recv3: $recv_data3"
log local0. "Recv4: $recv_data4"
}
Log:
Peek: HTTP/1.1 201 Created Location: https://1.2.3.4/path/to/uri/bThFQW1xR2tXMU5JdE1GTzA5aG1kaW1LNkNYVFBNUE00MEZLZ2RYOEZsL1h0aXpjN2pLQ0VHNC9SZDBURVhkMEdHWWg4dnJpWHdvL0svVkNqaGYwZnJHWmNib2dUYi8wRUJSTTZkQWN0cENncW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Rc0VXNy9hYUZxTUk0eGhFZGxOMmIwMm9xQU9LM0FWeStldTVNb2ZIWC9HTnp1dkJ4YWdFN0JUamZiVWpTeHhob3ZaK0xvYWVaTkY2cEVuVkMyTHkwUkJaNzdBN1k0cUJIVGJwaWpMZitLT2lsdGRERU9aYUJWVDBSeUVPYUNmWTZOOCtDbXg3aVgwSmhmN1NGRUJQME9rM01OUlNiQzhhRmV0Rk1lRHNzeXl3Q01QZTdUUEdwencwT2lPYmprMGdWd3M1TG1IQ21QME5hSS8rN1ltNjQ1MGhUZ05VaWp3Y0xsWjdOdTUxK1VvYmtmNWh5NFNoYTFNNXNwUk1zYndtRTJvckFxZko1ZVRpa0p4cGVqa2JlVzB1a3FQL0xRS28xUW1sR1UyZHhpVERUdSt5cnF2b3dxQWRtL2IwMWo5aDB2NDM3Lzd0RXQxQmNUQWpEaEZiZ1Fvc09JTDZTV1I3d1FXOExOMDRkZzFLYjRxTUlHemE5K2htKzN4cS9Ec01FdjhQY3dCbjJvclA1VUJiZnd5SmEwZDh6Zm1
Recv3:
Recv4:
Thanks
Richard
Recent Discussions
Related Content
* 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