
29 Jul
2009
29 Jul
'09
2:44 a.m.
2009/7/28 Yang, Chul-Woong
*** Exception: too few bytes. Failed reading at byte position 9 *Main>
Why and what can I do for this? Thanks in advance.
The Get monad is complaining that you are trying to read more than 8 bytes from a buffer of length 8. Presumably you are sending packets of that size? If you want to handle such errors (and you should), you could either first test the length of the incoming message or use exception handling to catch the exception in myHandler. - Björn