File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
src/main/java/com/arangodb/internal/velocystream Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change
1
+ v4.1.0 (2016-10-xx)
2
+ ---------------------------
3
+ * changed VelocyStream communication (send protocol header)
4
+
1
5
v4.0.0 (2016-10-17)
2
6
---------------------------
3
7
* replaced API
Original file line number Diff line number Diff line change 49
49
public abstract class Connection {
50
50
51
51
private static final Logger LOGGER = LoggerFactory .getLogger (Connection .class );
52
- private static final byte [] ACCEPT_HEADER = ByteBuffer .wrap ("VST/1.0\r \n \r \n " .getBytes ())
53
- .order (ByteOrder .LITTLE_ENDIAN ).array ();
52
+ private static final byte [] PROTOCOL_HEADER = "VST/1.0\r \n \r \n " .getBytes ();
54
53
55
54
private final String host ;
56
55
private final Integer port ;
@@ -111,7 +110,7 @@ public synchronized void open() throws IOException {
111
110
}
112
111
((SSLSocket ) socket ).startHandshake ();
113
112
}
114
- sendAcceptHeader ();
113
+ sendProtocolHeader ();
115
114
}
116
115
117
116
public synchronized void close () {
@@ -127,8 +126,8 @@ public synchronized void close() {
127
126
}
128
127
}
129
128
130
- private void sendAcceptHeader () throws IOException {
131
- outputStream .write (ACCEPT_HEADER );
129
+ private void sendProtocolHeader () throws IOException {
130
+ outputStream .write (PROTOCOL_HEADER );
132
131
outputStream .flush ();
133
132
}
134
133
You can’t perform that action at this time.
0 commit comments