Change received the maximum length

Modify received a maximum length of 4m.
get the number of the session