Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

smart-serial server timing out

Solved1.87K views28th August 2020smart-serial
1
Julio Riambau [SLC] [DevOps Advocate]302 27th August 2020 1 Comment

Hi,

I have the following situation.

A driver acting as server via smart-serial.

If a request is made via postman or curl.

A response with 200 and the json body will be visible on the stream viewer.

On postman a status 200 will be available but it will keep waiting until timeout or until the driver is stopped.

Similar with curl.

Tried to close the connection with a close action but i may be missing something.

Could you please give me some advice in how to implement this feature?

Thanks in advance.

Julio Riambau [SLC] [DevOps Advocate] Selected answer as best 28th August 2020
Julio Riambau [SLC] [DevOps Advocate] commented 28th August 2020

Thank you very much for the feedback.

Thank you @Gelber Mahecha fixing the HTTP structure worked great!!

3 Answers

  • Active
  • Voted
  • Newest
  • Oldest
4
Gelber Mahecha [SLC] [DevOps Enabler]1.62K Posted 28th August 2020 0 Comments

If it's unnecessary to implement a full-fledged HTTP Web server, a minimal response for a request should be like this:

HTTP/1.1 200 OK
Content-Length: 13
Content-Type: text/plain; charset=utf-8

My answer

The Content-Length should be the body's length, and there must be a new line between the headers and the body. Notice this solution is not intended to be a robust server communication channel but more for occasional confirmation and lightweight responses.

Julio Riambau [SLC] [DevOps Advocate] Selected answer as best 28th August 2020
You are viewing 1 out of 3 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin