Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8088285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T19:02:42+00:00 2026-06-05T19:02:42+00:00

Ubuntu 12.04 has an open bug regarding openssl. If you try to connect to

  • 0

Ubuntu 12.04 has an open bug regarding openssl. If you try to connect to a host that does not support TLS 1.2 (for example Evernote), you get “EOF occurred in violation of protocol”.
See https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/965371

In the comments to that bug, there is a workaround for httplib.py, where TLS 1.1 is forced. Unfortunately this does not work for the GAE SDK, as it uses its own custom httplib based on urlfetch.

How can I force urlfetch to use TLS 1.1 or otherwise work around this bug? When I upload my app to GAE it works fine, so I only need a local fix for my SDK. I have tried replacing the custom httplib.py with a patched stock httplib.py from Python 2.7, but this just leads to further problems as that module needs ssl and socket, which in turn needs another os, etc.

EDIT: Last part of traceback:

  File "evernote-sdk/lib/thrift/transport/THttpClient.py", line 122, in flush
    self.code, self.message, self.headers = self.__http.getreply()
  File "google_appengine/google/appengine/dist27/httplib.py", line 592, in getreply
    response = self._conn.getresponse()
  File "google_appengine/google/appengine/dist27/httplib.py", line 502, in getresponse
    raise HTTPException(str(e))
HTTPException: ApplicationError: 6 [Errno 8] _ssl.c:504: EOF occurred in violation of protocol

It is the combination of Ubuntu 12.04, Evernote’s server/SDK and Google App Engine SDK that is the problem.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T19:02:43+00:00Added an answer on June 5, 2026 at 7:02 pm

    The traceback shows the error originates here:
    http://code.google.com/p/googleappengine/source/browse/trunk/python/google/appengine/dist27/httplib.py#490
    This code block uses self._fetch which is assigned to be urlfetch.fetch in line 363 of the same file.

    Now that we now it uses urlfetch and since the problem is only on dev_appserver, let’s have a look at urlfetch_stub.py. The stub module uses the fancy_urllib library to make requests.
    We also know that the ubuntu launchpad bug suggests to do a

    < self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file)
    ---
    > self.sock = ssl.wrap_socket(sock, self.key_file, self.cert_file, ssl_version=ssl.PROTOCOL_TLSv1)
    

    which hints us at the call we want to patch. Looking for ‘ssl.wrap_socket’ in fancy_urllib gives us 1 hit:
    init.py#159″>http://code.google.com/p/googleappengine/source/browse/trunk/python/lib/fancy_urllib/fancy_urllib/init.py#159

    Can you try to patch this method? I can’t verify as I don’t know how to reproduce the issue.

    FWIW, searching for “ssl.wrap_socket” over all the SDK code also points at a couple of lines in the httplib2 third-party library, but right now I don’t think this is what needs patching.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Environment: Ruby 1.9.2, Rails 3.0.3, Ubuntu When I try to open a URL using:
I'm looking for a postage scale that already has linux support (drivers, etc) for
In the Makefile.in of an existing c++ project on linux (ubuntu), it has this:
I have a PHP-script originally developed on Ubuntu, which now has to run on
My Ubuntu Subversion server is not directly accessible to the Internet, 192.168.1.2 My public
I'm trying to open a file for read/write. I've been developing on Ubuntu, and
The development machine I work on has Ubuntu Jaunty Jackalope as its operating system.
Ubuntu 11.10, Python 2.6. Background: I have an existing Python app that is using
I used the search, and the specific topic has not been covered before to
I wonder if anyone here has any experience with mercurial running on Ubuntu? I've

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.