Open Hirurgo opened 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
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?
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.