Hi Travis, Indeed. I re-read your code and think I have a clearer understanding of your intent now: You have an open TCP connection down which 'messages' are being sent which are prefaced by 'data length'. The 'messages' should be handled one at a time.
So regardless of the maths ; otherwise, read more data Isn't quite right because you are using a blocking read, bytes-read can only return 'data length' or an error has occured, in which case you cannot read more data. I was confused by this because it looked like a typical non-blocking 'work around'. In any case I don't expect that part of the code is ever being reached (it shouldn't happen unless the connection gets buggered). Unfortunately that puts us back to square one somewhat... maybe something in (connection-write) or the state transition? I think it might be printf time! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---