소스 검색

Crash loudly if an IRC message is too long despite all the checks and splits

master
JustAnotherArchivist 4 년 전
부모
커밋
843775e948
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. +2
    -0
      http2irc.py

+ 2
- 0
http2irc.py 파일 보기

@@ -353,6 +353,8 @@ class IRCClientProtocol(asyncio.Protocol):

def send(self, data):
self.logger.debug(f'Send: {data!r}')
if len(data) > 510:
raise RuntimeError(f'IRC message too long ({len(data)} > 510): {data!r}')
self.transport.write(data + b'\r\n')

async def _get_message(self):


불러오는 중...
취소
저장