We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2cd8759 commit b2960c6Copy full SHA for b2960c6
sctp_linux.go
@@ -179,7 +179,7 @@ func (c *SCTPConn) Close() error {
179
180
func closeSctpSocket(fd int, timeout time.Duration) error {
181
// Send SHUTDOWN to initiate graceful shutdown
182
- syscall.Shutdown(fd, syscall.SHUT_WR)
+ syscall.Shutdown(fd, syscall.SHUT_RDWR)
183
184
// Wait for graceful shutdown to complete.
185
// If peer responds, Read returns immediately with ENOTCONN.
0 commit comments