2015-12-16 08:07:31 +03:00
|
|
|
# frozen_string_literal: false
|
2003-07-23 20:51:36 +04:00
|
|
|
#
|
|
|
|
# compat.rb -- cross platform compatibility
|
|
|
|
#
|
|
|
|
# Author: IPR -- Internet Programming with Ruby -- writers
|
|
|
|
# Copyright (c) 2002 GOTOU Yuuzou
|
|
|
|
# Copyright (c) 2002 Internet Programming with Ruby writers. All rights
|
|
|
|
# reserved.
|
|
|
|
#
|
|
|
|
# $IPR: compat.rb,v 1.6 2002/10/01 17:16:32 gotoyuzo Exp $
|
|
|
|
|
2011-05-18 00:29:58 +04:00
|
|
|
##
|
2013-12-06 06:10:11 +04:00
|
|
|
# System call error module used by webrick for cross platform compatibility.
|
2011-05-18 00:29:58 +04:00
|
|
|
#
|
|
|
|
# EPROTO:: protocol error
|
|
|
|
# ECONNRESET:: remote host reset the connection request
|
|
|
|
# ECONNABORTED:: Client sent TCP reset (RST) before server has accepted the
|
|
|
|
# connection requested by client.
|
|
|
|
#
|
2003-07-23 20:51:36 +04:00
|
|
|
module Errno
|
2011-05-18 00:29:58 +04:00
|
|
|
##
|
|
|
|
# Protocol error.
|
|
|
|
|
2003-07-23 20:51:36 +04:00
|
|
|
class EPROTO < SystemCallError; end
|
2011-05-18 00:29:58 +04:00
|
|
|
|
|
|
|
##
|
|
|
|
# Remote host reset the connection request.
|
|
|
|
|
2003-07-23 20:51:36 +04:00
|
|
|
class ECONNRESET < SystemCallError; end
|
2011-05-18 00:29:58 +04:00
|
|
|
|
|
|
|
##
|
|
|
|
# Client sent TCP reset (RST) before server has accepted the connection
|
|
|
|
# requested by client.
|
|
|
|
|
2003-07-23 20:51:36 +04:00
|
|
|
class ECONNABORTED < SystemCallError; end
|
|
|
|
end
|