Skip to content

Update mod_event_socket_1048924.mdx #264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ body line N <-- or here if there's | event body |
a body | |

--------------------------------------------------------------------
\n is a line feed in the form of CRLF.
\n is a line feed in the form of LF, not CRLF.
```


Expand Down Expand Up @@ -379,7 +379,6 @@ Content-Length: 41
#### 3.5.2 `event plain` parsing instructions

1. **Look for 2 line feeds** or end-of-line sequences(EOL)
TODO The original text contains LF, the FreeSWITCH book says CRLF. Figure out which is correct.
2. **Get the event data**
Read exactly as many bytes from the socket as specified in the `Content-Length` header
Note that since this is TCP, this may take more than one read so if you are supposed to read 200 bytes and the next read only returns 50, you must continue to read another 150, and so on until you have read 200 bytes or the socket has an error.
Expand Down