Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
G
GLib
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 936
    • Issues 936
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 59
    • Merge Requests 59
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • GLib
  • Issues
  • #1769

Closed
Open
Opened May 02, 2019 by Rich Coe@richcoe2

libgio is leaking sockets

After upgrade of libgio to 2.60.0, an application I use, liferea, is leaking sockets. The symptom is that the app crashes with 'no more file descriptors.'
libgio is being used by libsoup, so it's possible that libsoup is not using libgio correctly.

What I've been able to determine is that if liferea asks for a url to be loaded by libsoup, a number of sockets are opened to connect to the url. libsoup returns an error message 'HTTP error code 0: Unable to connect to remote host', and after there are two sockets still open, one tcp and one tcpv6.

I haven't tracked it to completion, but what I think is happening is that a url is passed to libsoup and a connection is attempted via libgio. The libgio tries to connect a socket several times, I suspect on each network interface?, and the last set, tcp-v4 and tcp-v6, get leaked.

This issue will also occur when the network on the computer is down or a site is down for maintenance.

If there is any tips for diagnosing this issue, I can easily reproduce the problem.

I built a new libgio from glib master on 6 Apr, but it did not fix the issue.

Assignee
Assign to
2.60.5
Milestone
2.60.5 (Past due)
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/glib#1769