Verify the configuration and negotiation of the idle timeout.
(self)
| 1200 | return "/".join(parts)[:size] |
| 1201 | |
| 1202 | def testGetSet(self): |
| 1203 | """ |
| 1204 | Verify the configuration and negotiation of the idle timeout. |
| 1205 | """ |
| 1206 | |
| 1207 | self.snd, self.rcv = self.link("test-link", idle_timeout=[1.0,2.0]) |
| 1208 | self.c1 = self.snd.session.connection |
| 1209 | self.c2 = self.rcv.session.connection |
| 1210 | self.snd.open() |
| 1211 | self.rcv.open() |
| 1212 | self.pump() |
| 1213 | # proton advertises 1/2 the configured timeout to the peer: |
| 1214 | assert self.rcv.session.connection.transport.idle_timeout == 2.0 |
| 1215 | assert self.rcv.session.connection.transport.remote_idle_timeout == 0.5 |
| 1216 | assert self.snd.session.connection.transport.idle_timeout == 1.0 |
| 1217 | assert self.snd.session.connection.transport.remote_idle_timeout == 1.0 |
| 1218 | |
| 1219 | def testTimeout(self): |
| 1220 | """ |