Sérgio Faria
794e24e879
The current EventThread doesn't need to be volatile
...
Citing the JLS (Java 7) §17.4.5:
> A call to start() on a thread happens-before any actions in
> the started thread.
Other threads calling isCurrent(), can see stale values of the static
variable, as it doesn't affect the result.
Nulling the thread variable, cannot be reordered with the new Thread because
a synchronized(EventThread.class) precedes the first task submission on a new
Executor, causing a happens-before relationship that ensures the null is
already visible to the thread on netTick (that will create the EventThread).
2014-08-28 21:42:10 +01:00
Sérgio Faria
4741886414
Refactor Emitter to remove a ConcurrentHashMap.
2014-08-28 20:35:40 +01:00
Naoyuki Kanezawa
21fb11f0c2
synchronize access to the ExecutorService
2014-08-17 01:42:52 +09:00
Naoyuki Kanezawa
bf3bc57244
add try-finally
2014-08-16 23:44:37 +09:00
Naoyuki Kanezawa
3817814809
Merge branch 'master' of github.com:nkzawa/engine.io-client.java
2014-08-16 20:04:34 +09:00
Naoyuki Kanezawa
f3057dd5d3
fix #4 gracefully shutdown all ExecutorServices
2014-08-16 20:04:20 +09:00
Andre Di Genova
20f57e345d
I forgot this was Java.
2014-08-10 03:59:16 -04:00
Andre Di Genova
29991ee00e
Android 19 on a 4.4.2 simulator seems to return a null when getHeaderFields is called on a headerless request instead of an empty map which results in an NPE.
2014-08-10 03:47:10 -04:00
Naoyuki Kanezawa
46196d57dc
don't use String#isEmpty for Android support
2014-07-27 00:26:24 +09:00
Naoyuki Kanezawa
f823857662
fix a few interfaces
2014-07-13 15:48:53 +09:00
Naoyuki Kanezawa
3ffe7b326b
add setDefaultSSLContext #3
2014-07-08 01:17:01 +09:00
Naoyuki Kanezawa
fe2fd4413a
fix #3 enable to set SSLContext as an option
2014-07-07 22:41:59 +09:00
Naoyuki Kanezawa
b1e43ba1b2
handle utf8 decode errors
2014-06-30 10:09:41 +09:00
Naoyuki Kanezawa
f42e993234
compatible with engine.io-parser 1.0.7
2014-06-29 13:29:50 +09:00
Naoyuki Kanezawa
18cb59c446
use org.json 20090211 for Android support
2014-06-29 11:56:23 +09:00
Naoyuki Kanezawa
cdc2c87f49
compatible with engine.io-client 1.2.2
2014-06-01 20:43:31 +09:00
Naoyuki Kanezawa
7c67fa5d9b
compatible with engine.io-parser 1.0.6
2014-06-01 20:21:54 +09:00
Naoyuki Kanezawa
8f8035b4d9
compatible with engine.io 1.1.0
2014-05-02 15:52:54 +09:00
Naoyuki Kanezawa
3751646667
ParseQS and Global made into packages
2014-05-02 13:49:12 +09:00
Naoyuki Kanezawa
7d6ff9e2dc
allow null for uri
2014-04-10 02:32:27 +09:00
Naoyuki Kanezawa
77165bd183
use org.json instead of Gson
2014-04-07 02:00:54 +09:00
Naoyuki Kanezawa
785b469590
add tests for binary suppport
2014-04-02 01:22:17 +09:00
Naoyuki Kanezawa
7a9c864055
add tests
2014-04-01 02:11:43 +09:00
Naoyuki Kanezawa
19c820334d
support protocol ver 3 and sending byte data
2014-03-30 18:46:31 +09:00
Naoyuki Kanezawa
808ad8c4f1
move EventThread
2014-03-25 23:33:58 +09:00
Naoyuki Kanezawa
9d6751d6b4
support the rememberUpgrade option
2014-03-25 23:21:26 +09:00
Naoyuki Kanezawa
3cb02a6151
headers should be case insensive
2014-02-02 22:42:17 +09:00
Naoyuki Kanezawa
139dd685e4
support for handling headers of websocket handshake
2014-02-02 08:54:05 +09:00
Naoyuki Kanezawa
4e4d51bd04
remove cookie option, and add support for handling headers
2014-02-01 03:38:10 +09:00
Naoyuki Kanezawa
84f97d8caf
compitible with engine.io 0.8.2
2014-01-27 05:36:22 +09:00
Naoyuki Kanezawa
803ee3bb25
compatible with engine.io 0.7.9
2013-10-18 02:01:44 +09:00
Naoyuki Kanezawa
693d9b54c0
compatible with engine.io v0.7.3
2013-08-25 01:16:55 +09:00
Naoyuki Kanezawa
2465d35e50
compatible with 0.6.2
2013-06-22 13:38:54 +09:00
Naoyuki Kanezawa
f558407a82
compatible with 0.6.1
2013-06-07 05:44:00 +09:00
Naoyuki Kanezawa
080d4d8935
enable to send cookie
2013-05-09 02:20:13 +09:00
Naoyuki Kanezawa
c61f2b9e81
update comments
2013-05-07 23:24:31 +09:00
Naoyuki Kanezawa
6a3f2d8415
make EventThread public
2013-05-07 00:18:45 +09:00
Naoyuki Kanezawa
997eb18e21
enum
2013-05-06 21:19:20 +09:00
Naoyuki Kanezawa
06c1da57b4
thread constraint
2013-05-06 20:48:38 +09:00
Naoyuki Kanezawa
2a1be6a67f
add comments
2013-05-05 02:30:28 +09:00
Naoyuki Kanezawa
4890247a03
move HandshakeData
2013-05-03 12:59:53 +09:00
Naoyuki Kanezawa
9f2ef5b5e0
add tests for handshake and upgrade
2013-05-03 02:45:08 +09:00
Naoyuki Kanezawa
09432364de
settings for Logger
2013-05-03 01:34:42 +09:00
Naoyuki Kanezawa
bdd2de8555
ready javadoc
2013-05-02 00:59:55 +09:00
Naoyuki Kanezawa
5b589bc563
add a test for the transport option
2013-05-01 23:07:50 +09:00
Naoyuki Kanezawa
5b67b3f5dd
tweak
2013-05-01 03:01:43 +09:00
Naoyuki Kanezawa
1200b464a1
add tests for Parser
2013-05-01 02:45:48 +09:00
Naoyuki Kanezawa
8b7b2125fc
add tests for emitter
2013-04-30 04:27:23 +09:00
Naoyuki Kanezawa
85631df4c0
handle error
2013-04-28 23:42:35 +09:00
Naoyuki Kanezawa
5bc39e7aff
constants
2013-04-25 00:08:15 +09:00