Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pike pike
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 104
    • Issues 104
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pikelang
  • pikepike
  • Issues
  • #8239
Closed
Open
Issue created Dec 03, 2018 by Peter Bortas@zinoOwner

Issue with reused HTTPClient.SessionQuery objects

Imported from https://youtrack.roxen.com/issue/PIKE-239

Reported by Martin Karlgren marty@roxen.com

Related to PIKE-148

There seems to be issues with reused HTTPClient.SessionQuery objects. I suspect that source_stream was set in an earlier request and not properly reset.

Also, keep PIKE-148 in mind. Perhaps the connection reuse handling should be revamped there.

String data not allowed in streaming mode.
 6:02:52   1m 8.9s  : etc/modules/HTTPClient.pmod:683: HTTPClient.Session()->SessionQuery(201 Created.)->async_request("roxen-appl-community-test-archive.roxen.com",80,"POST /rest/rep.shaw.story/_search HTTP/1.1",mapping[7],,,0)
 6:02:52            : pike/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:256: Request("http://roxen-appl-community-test-archive.roxen.com/rest/rep.shaw.story/_search" - connected - 0 bytes received)->do_async(({"roxen-appl-community-test-archive.roxen.com",80,"POST /rest/rep.shaw.story/_search HTTP/1.1",@0=mapping[7],,,0}))
 6:02:52            : pike/lib/modules/Protocols.pmod/HTTP.pmod/Session.pike:886: HTTPClient.Session()->async_do_method_url("POST",URI("http://roxen-appl-community-test-archive.roxen.com/rest/rep.shaw.story/_search"),UNDEFINED,,,5)
 6:02:52            : etc/modules/HTTPClient.pmod:536: HTTPClient.Session()->async_do_method_url("POST",@2=URI("http://roxen-appl-community-test-archive.roxen.com/rest/rep.shaw.story/_search"),UNDEFINED,,,5)
 6:02:52            : etc/modules/HTTPClient.pmod:166: HTTPClient.do_safe_method("POST",@6=URI("http://roxen-appl-community-test-archive.roxen.com/rest/rep.shaw.story/_search"),HTTPClient.Arguments(),0,HTTPClient.Session())
 6:02:52   1m 8.9s  : etc/modules/HTTPClient.pmod:65: HTTPClient.sync_post(@6,@7=HTTPClient.Arguments(),@8=HTTPClient.Session())
Assignee
Assign to
Time tracking