Commits

Andy Green authored 936e1c71cee
sspc: client: call CREATING on linkup to proxy Before this we simply proxy the CREATING state from the proxy version of the stream to the client version of the stream. However this can result in disordering of onward connection attempt request happening before the client has called back its CREATING (*state()), meaning that any metadata set in the state handler is missed for the onward connection. This patch suppresses the CREATING forwarded from the proxy and instead does its own local CREATING state callback at the time the proxy indicates that the remote stream creation (ie, with the requested policy streamtype) succeeded. This then guarantees that the client has seen CREATING, and had a chance to set metadata there, before the onward connection request goes out. Since metadata has higher priority at the writeable than the onward connection request it also means any metadata set in client CREATING gets sync'd to the proxy before the onward connection.