Skip to content

Commit b2960c6

Browse files
committed
enh: adds Read close
1 parent 2cd8759 commit b2960c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sctp_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ func (c *SCTPConn) Close() error {
179179

180180
func closeSctpSocket(fd int, timeout time.Duration) error {
181181
// Send SHUTDOWN to initiate graceful shutdown
182-
syscall.Shutdown(fd, syscall.SHUT_WR)
182+
syscall.Shutdown(fd, syscall.SHUT_RDWR)
183183

184184
// Wait for graceful shutdown to complete.
185185
// If peer responds, Read returns immediately with ENOTCONN.

0 commit comments

Comments
 (0)