Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
communication error and socket error
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
todor_k  
View profile  
 More options Jun 27, 5:23 am
From: todor_k <todo...@ecocoms.com>
Date: Sat, 27 Jun 2009 02:23:47 -0700 (PDT)
Local: Sat, Jun 27 2009 5:23 am
Subject: communication error and socket error
Hi,

in web2py Web Framework group we posted a thread for a "communication
and socket error"

http://groups.google.com/group/web2py/browse_frm/thread/e9e96414e7648...

It seems that this could be an cherrypy  wsgiserver issue and Massimo
Di Pierro suggested to bring the thread up in cherrypy mailing list.

So, can somebody help.

Todor


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
fumanchu  
View profile  
 More options Jun 27, 2:48 pm
From: fumanchu <fuman...@aminus.org>
Date: Sat, 27 Jun 2009 11:48:55 -0700 (PDT)
Local: Sat, Jun 27 2009 2:48 pm
Subject: Re: communication error and socket error
On Jun 27, 2:23 am, todor_k <todo...@ecocoms.com> wrote:

> in web2py Web Framework group we posted a thread for a "communication
> and socket error"

> http://groups.google.com/group/web2py/browse_frm/thread/e9e96414e7648...

> It seems that this could be an cherrypy  wsgiserver issue and Massimo
> Di Pierro suggested to bring the thread up in cherrypy mailing list.

A broken pipe error (EPIPE, 32) occurs in this case because the server
encountered some other error, and tried to send a "500 Internal Server
Error" response. While trying to write *that* data to the socket, the
client's TCP stack sent a RST packet because they had already closed
the socket.

Unfortunately, there's a line of code in the SSL_fileobject for
handling errors which reads:

    if is_reader and errnum in socket_errors_to_ignore:
        return ""

EPIPE is definitely in the list of socket errors to ignore, but I
can't recall why we would only ignore them on reads and not writes
when using SSL. In this case, we certainly should be ignoring the
error. You might try removing the text "is_reader and" and see what
else breaks because of it.

Robert Brewer
fuman...@aminus.org


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
todor_k  
View profile  
 More options Jun 27, 4:06 pm
From: todor_k <todo...@ecocoms.com>
Date: Sat, 27 Jun 2009 13:06:28 -0700 (PDT)
Local: Sat, Jun 27 2009 4:06 pm
Subject: Re: communication error and socket error
Thanks for the help.

After applying your advise we have the following output:

Exception in thread CP WSGIServer Thread-10:
Traceback (most recent call last):
  File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap
  File "/home/todork/web2py/gluon/wsgiserver.py", line 1004, in run
    conn.communicate()
  File "/home/todork/web2py/gluon/wsgiserver.py", line 949, in
communicate
    format_exc())
  File "/home/todork/web2py/gluon/wsgiserver.py", line 643, in
simple_response
    self.sendall(''.join(buf))
  File "/home/todork/web2py/gluon/wsgiserver.py", line 792, in
ssl_method_wrapper
    return method(self, *args, **kwargs)
Error: [('SSL routines', 'SSL3_WRITE_PENDING', 'bad write retry')]

I would like to mention that this server is running on embedded
system.
And the strange thing is that in different IP environment the systems
behaves differently. In my office it works perfectly and in home we
have these errors.
Always the browser is FF.

Sincerely,
Todor

On 27 Юни, 21:48, fumanchu <fuman...@aminus.org> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
todor_k  
View profile  
 More options Jun 28, 12:34 am
From: todor_k <todo...@ecocoms.com>
Date: Sat, 27 Jun 2009 21:34:56 -0700 (PDT)
Local: Sun, Jun 28 2009 12:34 am
Subject: Re: communication error and socket error
I found a good improvement when applied the patch for ticket #589 in
opennssl.org

http://rt.openssl.org/Ticket/Display.html?id=598

now some time I still obtain *ssl3_write_pending* error but the
wsgiserver do not hangup and it seems that the affected thread are
released after some timeout.

The strange thing is that this patch is released in 2006 and (I am
using OpenSSL 0.9.8k 25 Mar 2009) it is not included in the releases
up to now.

Thanks,
Todor

On 27 Юни, 23:06, todor_k <todo...@ecocoms.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
todor_k  
View profile  
 More options Jun 28, 1:10 am
From: todor_k <todo...@ecocoms.com>
Date: Sat, 27 Jun 2009 22:10:44 -0700 (PDT)
Local: Sun, Jun 28 2009 1:10 am
Subject: Re: communication error and socket error
Sorry,
the url is:
http://rt.openssl.org/Ticket/Display.html?id=598&user=guest&pass=guest

Todor

On 28 Юни, 07:34, todor_k <todo...@ecocoms.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
todor_k  
View profile  
 More options Jun 29, 2:07 pm
From: todor_k <todo...@ecocoms.com>
Date: Mon, 29 Jun 2009 11:07:54 -0700 (PDT)
Local: Mon, Jun 29 2009 2:07 pm
Subject: Re: communication error and socket error
To my great regret this is not the solution.
T.

On 28 Юни, 08:10, todor_k <todo...@ecocoms.com> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google