Вопрос

I am trying to send 212 KByte of Buffer over a tcp socket connection but in response i am receiving RST packet and connection reset by peer error.

I have changed SO_RCVBUF and SO_SBNBUF properties to 256 KB, and have verified that max_buf system property is also > 256 K. Still when i try to send large data the connection fails.

I am new to socket programming so please let me know if some more info is required. I think i am missing some socket options.

Os: solaris sparc

Это было полезно?

Решение

This error usually means you have written to a connection that has already been closed by the other end. There are other causes, but this is the most common. Is the recipient really supposed to deal with the sizes you are sending?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top