Java process on Mac OSX does not release socket

前端 未结 5 1925
小鲜肉
小鲜肉 2021-02-14 00:00

I am experiencing an odd problem every now and then (too often actually).

I am running a server application, which is binding a socket for itself.

But once in a

5条回答
  •  攒了一身酷
    2021-02-14 00:52

    try closing the socket with http://docs.oracle.com/javase/1.4.2/docs/api/java/net/ServerSocket.html#close() after each test, in the teardown, if you're not already.

提交回复
热议问题