Forum Discussion
Richard_Jones
Nimbostratus
Jan 23, 2013Sideband connection only receives 933 bytes?
I've been working on an iRule to open a sideband connection to a web server to submit a username and password via a GET, then receive response data. Although, it seems that the data received is limi...
nitass
Employee
Jan 25, 2013this is mine. i am running 11.3.0.
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm virtual bar80
ltm virtual bar80 {
destination 172.28.20.14:80
ip-protocol tcp
mask 255.255.255.255
profiles {
tcp { }
}
rules {
myrule
}
source 0.0.0.0/0
vlans-disabled
}
root@(ve11a)(cfg-sync Changes Pending)(Active)(/Common)(tmos) list ltm rule myrule
ltm rule myrule {
when CLIENT_ACCEPTED {
if {[catch {connect -timeout 1000 -idle 300 -status conn_status 200.200.200.111:80} conn] == 0 && $conn ne ""}{
set conn_info [connect info -idle -status $conn]
set send_info [send -timeout 3000 -status send_status $conn "GET /test.html HTTP/1.0\r\n\r\n"]
set start [clock clicks -milliseconds]
for {set i 0} {$i <= 10} {incr i} {
set recv_data [recv -peek -status peek_status -timeout 100 5000 $conn]
log local0. "Peek: [string length $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: [string length $recv_data1]"
log local0. "Recv2: [string length $recv_data2]"
log local0. "Recv3: [string length $recv_data3]"
log local0. "Recv4: [string length $recv_data4]"
}
TCP::respond OK
}
}
[root@ve11a:Active:Changes Pending] config tail -f /var/log/ltm
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Peek: 2284
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Recv1: 16
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Recv2: 2268
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Recv3: 0
Jan 26 15:08:12 ve11a info tmm[11170]: Rule /Common/myrule : Recv4: 0
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