Skip to content

java.lang.IllegalArgumentException Tcp Sockets: No socket with id #167

@pajkho

Description

@pajkho

Description

Sometimes when the connection gets interrupted while writing data the app will crash with "No socket with id" error. I suspect that this might be due to the write method not catching the errors that is thrown by getTcpClient method.

Steps to reproduce

Steps to reproduce the behavior:

  1. Write on the socket while it simultaneously gets disconnected.

Current behavior

App crashes with error

Expected behavior

Connection can close but app should not crash.

Relevant information

OS no
react-native yes
react-native-tcp-socket yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions