Skip to content
This repository was archived by the owner on May 7, 2020. It is now read-only.

Commit 85ef863

Browse files
committed
Fix issue with hung socket.
For some reason the socket hangs randomly if the request is done using more than one sockwrite command.
1 parent 80dd9de commit 85ef863

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mpc.hc.np.mrc

+1-3
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ alias np {
2525
}
2626

2727
on *:sockopen:mpchc.np:{
28-
sockwrite -n $sockname GET /info.html HTTP/1.1
29-
sockwrite -n $sockname Host: $sock($sockname).ip
30-
sockwrite -n $sockname $crlf
28+
sockwrite $sockname GET /info.html HTTP/1.1 $+ $crlf Host: $sock($sockname).ip $crlf $+ $crlf
3129
}
3230

3331
on *:sockread:mpchc.np:{

0 commit comments

Comments
 (0)