Use STATE_SOCK or STATE_TRANSFER instead of STATE
When receiving state, STATE fails to correctly push the state to the receiver. There is probably a bug in BlockingInputStream, as the state itself is transferred correctly. STATE_TRANSFER and STATE_SOCK are not affected