Skip to content

reconnect() method will block #732

@sucaiji

Description

@sucaiji

my code:

 @Override
   public void onClose(int code, String reason, boolean remote) {
       this.reconnect();
       System.out.println("123");
   }

by debug, I find program will block in LockSupport.java

public static void park(Object blocker) {
        Thread t = Thread.currentThread();
        setBlocker(t, blocker);
        UNSAFE.park(false, 0L);
        setBlocker(t, null);
    }

Did my usage is wrong?Or Bug?
My English is not good,Sorry.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions