File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
main/java/com/arangodb/internal/velocystream Expand file tree Collapse file tree 2 files changed +9
-1
lines changed 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 ();
5254
5355 private final String host ;
5456 private final Integer port ;
@@ -109,6 +111,7 @@ public synchronized void open() throws IOException {
109111 }
110112 ((SSLSocket ) socket ).startHandshake ();
111113 }
114+ sendAcceptHeader ();
112115 }
113116
114117 public synchronized void close () {
@@ -124,6 +127,11 @@ public synchronized void close() {
124127 }
125128 }
126129
130+ private void sendAcceptHeader () throws IOException {
131+ outputStream .write (ACCEPT_HEADER );
132+ outputStream .flush ();
133+ }
134+
127135 protected synchronized void writeIntern (final Message message , final Collection <Chunk > chunks ) {
128136 for (final Chunk chunk : chunks ) {
129137 try {
Original file line number Diff line number Diff line change 88 </encoder >
99 </appender >
1010
11- <root level =" info " >
11+ <root level =" debug " >
1212 <appender-ref ref =" STDOUT" />
1313 </root >
1414</configuration >
You can’t perform that action at this time.
0 commit comments