You're using blocking sockets, so read will not terminate until the connection is closed from the other end, or until 128 octets are read. I suppose the other side is sending data less than 128 octets ...
An ICSP pin header has been placed on PCB to create a programming socket for PICKit 2 programmer with the utilization of PIC16F676. An experiment board was used to build the ICSP socket for the PICKit ...