Operation on socket cannot be performed due to insufficient system buffer space or queue full-workaround (CSDN manual migration)

Source: Internet
Author: User

Exception information:

System.Net.Sockets.SocketException (0x80004005): the operation on the socket cannot be performed because the system has insufficient buffer space or the queue is full. 192.168.0.187:22

At System.Net.Sockets.Socket.DoConnect (EndPoint endpointsnapshot, socketaddress socketaddress)
At System.Net.Sockets.Socket.Connect (EndPoint remoteep)
At Tamir.sharpssh.java.net.socket..ctor (String host, Int32 Port)
At Tamir.SharpSsh.jsch.Util.createSocket (String host, Int32 port, Int32 timeout)

Error Description:

WebService, processing services are deployed on the server: WebService has a client polling call, and the processing service polls the database for processing and uploading files to the SFTP.

Workaround:

Modify Two registry:

Hkey_local_machine\system\currentcontrolset\services\tcpip\parameters\maxuserport if not, manually create a DWord (32-bit) "Value data" Change to a decimal 65534 or a value that is considered appropriate.

This value represents the maximum number of ports used by the user and defaults to 5000.

Hkey_local_machine\system\currentcontrolset\services\tcpip\parameters\tcptimedwaitdelay if not, manually create a DWord (32-bit) " Value data "to decimal 30 or the value you think is appropriate.

This value indicates how long a closed port waits and can be reused, with a default of 120 seconds, or 2 minutes before it can be reused.

Operation on socket cannot be performed due to insufficient system buffer space or queue full-workaround (CSDN manual migration)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.