question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems with network stream

See original GitHub issue

Hello. I need some help. My english is not good, sorry me Im trying to realise tcp client-server messaging with Hopac. I am using IVar for event system. Is this fine or? Anyway it is a not main question.

When i creating a client, i create and attach IVar to him. In concurrent job i am waiting for this IVar (IVar.read), and then client can be continue work. Then, when cliens receiving a connect response packet im trying to IVar.fill attached IVar. Looks pretty simple, but something goes wrong.

Here is code: https://gist.github.com/nanodesu88/15199957bb2cc99b82c6f12102426d88#file-main-fs

and aq.connectVar |> IVar.read does not resolving. But if i am moving last line to start of job like this:

https://gist.github.com/nanodesu88/15199957bb2cc99b82c6f12102426d88#file-fixed-fs

reading a IVar is completed is concurrent job. Looks like networkstream.read is blocking some job, but i does not know how to jobs works inside and can’t imagine what can be wrong

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
hafcommented, Nov 2, 2018

Yeah, no worries, but you should be considering the async-methods to start with, http://tomasp.net/blog/async-compilation-internals.aspx/ — like this, but with Job.fromAsync.

1reaction
hafcommented, Nov 2, 2018

Haha, well, I think your english is good enough to understand, so I doubt that would be a problem. =) If you’re interested; henrik at haf.se is my e-mail.

Read more comments on GitHub >

github_iconTop Results From Across the Web

6 steps to solving your streaming video problems
Step 1: Restart everything · Step 2: Know your internet speed · Step 3: Try a different streaming service · Step 4: Check...
Read more >
7 Common Live Event Streaming Problems And What You ...
Your live event streaming problem could be down to a slow connection from your internet modem. To test the connection, locate the ethernet...
Read more >
Best Ways to Fix All Video Streaming Issues.
A slow or poor internet connection is usually the most probable cause of streaming errors that affect a video stream. Such issues can...
Read more >
Guide for Troubleshooting Common Live Streaming Errors
Buffering and Latency Issues · Audio and video Synchronization Problems · Video Settings Problem · Failed token Error from Platform · Platform ...
Read more >
Fix Video Streaming Problems on Windows 10 [Woes, ...
Video streaming problems may occur due to several factors including Internet speed and the type of media player you're using.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found