Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate telepath task V1, add message to t2:genr LinkShutDown (SYN-7035, SYN-7033) #3640

Merged
merged 4 commits into from
Mar 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion synapse/telepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -832,7 +832,7 @@ async def genrloop():

mesg = await link.rx()
if mesg is None:
raise s_exc.LinkShutDown(mesg=mesg)
raise s_exc.LinkShutDown(mesg='Remote peer disconnected')

if mesg[0] != 't2:yield': # pragma: no cover
info = 'Telepath protocol violation: unexpected message received'
Expand Down Expand Up @@ -869,6 +869,8 @@ async def task(self, todo, name=None):
if self.sess is not None:
return await self.taskv2(todo, name=name)

s_common.deprecated('Telepath task with no session', curv='2.166.0')

task = Task()

mesg = ('task:init', {
Expand Down
Loading