File tree Expand file tree Collapse file tree 3 files changed +2
-15
lines changed
rsocket-core/src/main/java/io/rsocket Expand file tree Collapse file tree 3 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ public abstract class ConnectionSetupPayload extends AbstractReferenceCounted im
30
30
31
31
public static final int NO_FLAGS = 0 ;
32
32
public static final int HONOR_LEASE = SetupFrameFlyweight .FLAGS_WILL_HONOR_LEASE ;
33
- public static final int STRICT_INTERPRETATION = SetupFrameFlyweight .FLAGS_STRICT_INTERPRETATION ;
34
33
35
34
public static ConnectionSetupPayload create (String metadataMimeType , String dataMimeType ) {
36
35
return new DefaultConnectionSetupPayload (
@@ -73,10 +72,6 @@ public boolean willClientHonorLease() {
73
72
return Frame .isFlagSet (getFlags (), HONOR_LEASE );
74
73
}
75
74
76
- public boolean doesClientRequestStrictInterpretation () {
77
- return STRICT_INTERPRETATION == (getFlags () & STRICT_INTERPRETATION );
78
- }
79
-
80
75
@ Override
81
76
public boolean hasMetadata () {
82
77
return Frame .isFlagSet (getFlags (), FLAGS_M );
Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ public static class ClientRSocketFactory implements ClientTransportAcceptor {
82
82
private Consumer <Throwable > errorConsumer = Throwable ::printStackTrace ;
83
83
private int mtu = 0 ;
84
84
private PluginRegistry plugins = new PluginRegistry (Plugins .defaultPlugins ());
85
- private int flags = SetupFrameFlyweight . FLAGS_STRICT_INTERPRETATION ;
85
+ private int flags = 0 ;
86
86
87
87
private Payload setupPayload = EmptyPayload .INSTANCE ;
88
88
private Function <Frame , ? extends Payload > frameDecoder = DefaultPayload ::create ;
Original file line number Diff line number Diff line change @@ -32,17 +32,9 @@ private SetupFrameFlyweight() {}
32
32
public static final int FLAGS_RESUME_ENABLE = 0b00_1000_0000;
33
33
/** A flag used to indicate that the client will honor LEASE sent by the server */
34
34
public static final int FLAGS_WILL_HONOR_LEASE = 0b00_0100_0000;
35
- /**
36
- * (obsolete) flag indicating that the server should reject the SETUP if it finds anything
37
- * in the data or metadata that it doesn't understand
38
- *
39
- * @deprecated removed between protocol version 0.2 and 1.0RC
40
- */
41
- @ Deprecated
42
- public static final int FLAGS_STRICT_INTERPRETATION = 0b00_0010_0000;
43
35
44
36
public static final int VALID_FLAGS =
45
- FLAGS_RESUME_ENABLE | FLAGS_WILL_HONOR_LEASE | FLAGS_STRICT_INTERPRETATION | FLAGS_M ;
37
+ FLAGS_RESUME_ENABLE | FLAGS_WILL_HONOR_LEASE | FLAGS_M ;
46
38
47
39
public static final int CURRENT_VERSION = VersionFlyweight .encode (1 , 0 );
48
40
You can’t perform that action at this time.
0 commit comments