OkSocket icon indicating copy to clipboard operation
OkSocket copied to clipboard

An blocking socket client for Android applications.

Results 37 OkSocket issues
Sort by recently updated
recently updated
newest added

getBodyLength的大小使用demo提供的会发生异常

不知道为啥,已经有非空判断,但是还是报了空指针,请作者查一下代码,是什么原因 ![EF_LO~2BO~4MLNR7}BQIZXB](https://user-images.githubusercontent.com/9794076/77426568-b052c280-6e0f-11ea-8f80-e9d4cd590b39.png) ![8Y4409`V_Q4HQJ`XFR QGSM](https://user-images.githubusercontent.com/9794076/77426576-b6e13a00-6e0f-11ea-8c5e-faa83e33b36d.png)

主线程调用disconnect或者connect后有一定几率出现ANR问题,好像死锁了: 部分bugly日志如下: com.xuhao.didi.socket.client.impl.client.ConnectionManagerImpl.disconnect(ConnectionManagerImpl.java:1) com.xuhao.didi.socket.client.impl.client.ConnectionManagerImpl.disconnect(ConnectionManagerImpl.java:20)

异常信息如下: com.xuhao.didi.core.exceptions.ReadException: com.xuhao.didi.core.exceptions.ReadException: read head is wrong, this socket input stream is end of file read -1 ,that mean this socket is disconnected by server

Does the delimiter protocol not support?

在封装的协议下能否发送文件呢?

Hi, Like the title says, JCenter is at end of life. I get that notification in Android Studio. Everything hosted there, should migrate to somewhere else, like Maven Central. Can...

```` 021-11-07 22:05:47.630 27015-27221/com.app.transfer W/System.err: OkSocket, Socket server 192.168.49.1:3876 connect failed! error msg:failed to connect to /192.168.49.1 (port 3876) from /192.168.49.181 (port 49326) after 10000ms: isConnected failed: ECONNREFUSED (Connection refused)...

1.这是我destroy中的取消回调 @Override protected void onDestroy() { super.onDestroy(); if (mManager != null) { mManager.unRegisterReceiver(mAllCallBack); if (mManager.isConnect()) { mManager.disconnect(); mBtConnect.setText(getString(R.string.begin_connect)); } } } 2.回调监听是成员属性,只会有一个,查看了源码,存储此对象是用vector集合,对象能保证唯一性,多次注册相同对象也不会有问题 allCallBack mAllCallBack = new allCallBack(); 3.这样操作后,还是会一直连接失败的回调,不知道内存泄露的点在什么地方 后续:查看了源码 源码中会通过hashMap保存manager,外部manager重新打开通道后,上次通道需要关闭,否则还是会造成可达...

hello, thanks to nice module! it save my days. but i struggled at receiving server's data. lets have a look at wiresharks log that server response ``` Frame 69088: 82...