PeelTechnologies / react-native-tcp

node's net api in react-native
MIT License
284 stars 212 forks source link

Сorrectly terminating the socket connection Android 7+ #98

Open Hirurgo opened 5 years ago

Hirurgo commented 5 years ago

On our project we are faced with the problem of correctly terminating the socket connection on android above version 7. This fix will help to avoid this problem.

Hirurgo commented 5 years ago

more details

We have two mobile device(both uses react-native-tcp) and one network printer. Both mobile devices should sending data for printing to printer simultaneously, but first device block connection with printer, and another device can't print anything. After investigation we think that happaned in cause of uncorrect closing of connection from client side.

Adding end() command fix bug.

Bug don't reproduced unde Android 7

phillbaker commented 5 years ago

Thanks @Hirurgo. I recently started helping to maintain this library - maintenance has moved to a fork: https://github.com/aprock/react-native-tcp. Mind repointing your PR there?