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+
15v4.0.0 (2016-10-17)
26---------------------------
37* replaced API
Original file line number Diff line number Diff line change 4949public abstract class Connection {
5050
5151 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 ();
5453
5554 private final String host ;
5655 private final Integer port ;
@@ -111,7 +110,7 @@ public synchronized void open() throws IOException {
111110 }
112111 ((SSLSocket ) socket ).startHandshake ();
113112 }
114- sendAcceptHeader ();
113+ sendProtocolHeader ();
115114 }
116115
117116 public synchronized void close () {
@@ -127,8 +126,8 @@ public synchronized void close() {
127126 }
128127 }
129128
130- private void sendAcceptHeader () throws IOException {
131- outputStream .write (ACCEPT_HEADER );
129+ private void sendProtocolHeader () throws IOException {
130+ outputStream .write (PROTOCOL_HEADER );
132131 outputStream .flush ();
133132 }
134133
You can’t perform that action at this time.
0 commit comments