BlockingIOError: [WinError 10035] An established connection was aborted by the software on your host computer while debug a plugin locally #560

Closed
opened 2026-02-16 10:19:44 -05:00 by yindo · 2 comments
Owner

Originally created by @XinyuGu on GitHub (Aug 14, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.4.0

Plugin version

0.0.10

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

while I debug a plugin from github for example https://github.com/junjiem/dify-plugin-agent-mcp_sse, the plugin ran smoothly at first time. Then I closed the plugin and shut down my computer. Next time I ran the plugin , it raised the error. I think it is a bug for socket connection.

Image

✔️ Error log

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\python_project\dify-plugin-agent-mcp_sse-main.venv\Lib\site-packages\gevent_socketcommon.py", line 721, in send
return self._sock.send(data, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
BlockingIOError: [WinError 10035] 无法立即完成一个非阻止性套接字操作。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\python_project\dify-plugin-agent-mcp_sse-main.venv\Lib\site-packages\dify_plugin\core\server\tcp\request_reader.py", line 94, in write
sent = self._write_to_sock(data_bytes)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python_project\dify-plugin-agent-mcp_sse-main.venv\Lib\site-packages\dify_plugin\core\server\tcp\request_reader.py", line 73, in _write_to_sock
return self.sock.send(data)
^^^^^^^^^^^^^^^^^^^^
File "D:\python_project\dify-plugin-agent-mcp_sse-main.venv\Lib\site-packages\gevent_socketcommon.py", line 728, in send
return self._sock.send(data, flags)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。

Originally created by @XinyuGu on GitHub (Aug 14, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.4.0 ### Plugin version 0.0.10 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce while I debug a plugin from github for example https://github.com/junjiem/dify-plugin-agent-mcp_sse, the plugin ran smoothly at first time. Then I closed the plugin and shut down my computer. Next time I ran the plugin , it raised the error. I think it is a bug for socket connection. <img width="1091" height="823" alt="Image" src="https://github.com/user-attachments/assets/a75fd060-e84d-426e-9193-533f914d4de4" /> ### ✔️ Error log During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\python_project\dify-plugin-agent-mcp_sse-main\.venv\Lib\site-packages\gevent\_socketcommon.py", line 721, in send return self._sock.send(data, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ BlockingIOError: [WinError 10035] 无法立即完成一个非阻止性套接字操作。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\python_project\dify-plugin-agent-mcp_sse-main\.venv\Lib\site-packages\dify_plugin\core\server\tcp\request_reader.py", line 94, in write sent = self._write_to_sock(data_bytes) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\python_project\dify-plugin-agent-mcp_sse-main\.venv\Lib\site-packages\dify_plugin\core\server\tcp\request_reader.py", line 73, in _write_to_sock return self.sock.send(data) ^^^^^^^^^^^^^^^^^^^^ File "D:\python_project\dify-plugin-agent-mcp_sse-main\.venv\Lib\site-packages\gevent\_socketcommon.py", line 728, in send return self._sock.send(data, flags) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接。
yindo added the bug label 2026-02-16 10:19:44 -05:00
yindo closed this issue 2026-02-16 10:19:44 -05:00
Author
Owner

@crazywoola commented on GitHub (Aug 14, 2025):

@dosu Validate this issue.

@crazywoola commented on GitHub (Aug 14, 2025): @dosu Validate this issue.
Author
Owner

@XinyuGu commented on GitHub (Aug 28, 2025):

@crazywoola So you have the idea? Could you make a comment on it? Much Appreciate.

@XinyuGu commented on GitHub (Aug 28, 2025): @crazywoola So you have the idea? Could you make a comment on it? Much Appreciate.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#560