Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | |||
| 5 | 6 | 7 | 8 | 9 | 10 | 11 |
| 12 | 13 | 14 | 15 | 16 | 17 | 18 |
| 19 | 20 | 21 | 22 | 23 | 24 | 25 |
| 26 | 27 | 28 | 29 | 30 |
Tags
- Java Singleton
- 상호 인증
- try - with - resources
- 이중정렬
- Java Rest
- mapstruct
- Sub Bytes
- Srping MVC
- Open Close Principal
- Java Graphql
- Checked Exception
- AfterMapping
- NoUniqueBeanDefinitionException
- Tomcat DBCP
- requestheaderdto
- WildFly
- Unchecked Exception
- Jndi DataSource
- graphql
- mTLS
- 데이터 압축
- tomcat jndi
- 바이트 절삭
- 개방 폐쇄 원칙
- Socket is closed
- java
- Request Body 여러 번 사용
- HandlerMethodArgumentResolver
- Reading HttpServletRequest Multiple Times
- Graphql Client
Archives
- Today
- Total
목록Socket is closed (1)
Developer Sang Guy
Socket is closed
SocketUtil 클래스를 생성하여 Socket 통신 테스트를 진행하였더니 "Socket is closed" 라는 에러를 만나게 되었다. 해당 에러는 소켓을 사용하려 할 때 이미 소켓이 닫혀 버린 경우 발생하는 에러이다. Socket.class public OutputStream getOutputStream() throws IOException { if (isClosed()) throw new SocketException("Socket is closed"); if (!isConnected()) throw new SocketException("Socket is not connected"); if (isOutputShutdown()) throw new SocketException("Socket output..
Java
2022. 12. 22. 13:27