*** empty log message ***

This commit is contained in:
David Rose 2001-03-14 19:00:50 +00:00
parent ffb3b7b230
commit cbf3460225
2 changed files with 18 additions and 3 deletions

View File

@ -136,7 +136,12 @@ send_datagram(const NetDatagram &datagram) {
PR_Unlock(_write_mutex);
if (result < 0) {
if (errcode == PR_CONNECT_RESET_ERROR) {
if (errcode == PR_CONNECT_RESET_ERROR
#ifdef PR_SOCKET_SHUTDOWN_ERROR
|| errcode == PR_SOCKET_SHUTDOWN_ERROR
|| errcode == PR_CONNECT_ABORTED_ERROR
#endif
) {
// The connection has been reset; tell our manager about it
// and ignore it.
if (_manager != (ConnectionManager *)NULL) {

View File

@ -504,7 +504,12 @@ process_incoming_tcp_data(SocketInfo *sinfo) {
if (bytes_read < 0) {
PRErrorCode errcode = PR_GetError();
if (errcode == PR_CONNECT_RESET_ERROR) {
if (errcode == PR_CONNECT_RESET_ERROR
#ifdef PR_SOCKET_SHUTDOWN_ERROR
|| errcode == PR_SOCKET_SHUTDOWN_ERROR
|| errcode == PR_CONNECT_ABORTED_ERROR
#endif
) {
// The socket was closed.
if (_manager != (ConnectionManager *)NULL) {
_manager->connection_reset(sinfo->_connection);
@ -557,7 +562,12 @@ process_incoming_tcp_data(SocketInfo *sinfo) {
if (bytes_read < 0) {
PRErrorCode errcode = PR_GetError();
if (errcode == PR_CONNECT_RESET_ERROR) {
if (errcode == PR_CONNECT_RESET_ERROR
#ifdef PR_SOCKET_SHUTDOWN_ERROR
|| errcode == PR_SOCKET_SHUTDOWN_ERROR
|| errcode == PR_CONNECT_ABORTED_ERROR
#endif
) {
// The socket was closed.
if (_manager != (ConnectionManager *)NULL) {
_manager->connection_reset(sinfo->_connection);