The TCL script is using a socket to connect as a client to the inbound thread which is setup as a PROTOCOL:tcpip server. It is set as ASCII length 10 fill 0.
When I run the script the message is accepted by the thread and sent downstream as expected, but I get the following error in the process log: Read 0 bytes — peer disconnected?
Unable to read msg length
It looks like it reads the message from IP, using the length in the first 10 bytes and grabs the expected remainder of the data as the message. Then it seems to go back to the socket and look for more data, but there is no more data because I am only sending one message at a time. How can I make it cleaner?
The command line script has this code:
set server “xxx”
set sockChan [socket $server nnnn]
fconfigure $sockChan -translation binary
puts $sockChan $msg
flush $sockChan
close $sockChan
I’ve also tried appending another 10 bytes of a message length indicator, with a value of 0000000000 to indicate that there is no more data to read. I’ve tried appending CR, LF, CRLF, LFFCR, x1c. I must be missing the point. Do I need to code/use a Reply or Ack tcl in my inbound thread to send back to the client TCL?
Peter
Peter Heggie
PeterHeggie@crouse.org