Blocking mode I/O blocks the issuing thread until the operation transfers at least one byte or an error or end of stream occurs. Blocking algorithms refer to an operation in multithreaded environment which temporarily restricts access to some resources to a single thread, thus blocking all other ones. It isn't clear which this tag is intended for.
Questions tagged [blocking]
1679 questions
0
votes
1 answer
When is recv() method returning 0?
Could someone explain when is recv() method returning 0? Of course buffer longer than 0 bytes is provided. Method is blocking, so it should wait until it recieves something or throw an error and return -1. I have flag - 0 set. It is not indicating…

zlenyk
- 922
- 2
- 7
- 22
0
votes
1 answer
I am trying to block a kind browser with RewriteCond %{HTTP_USER_AGENT}
this is what identifies this browser in the apache log
"Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0"
what should the correct syntax be ?
RewriteCond %{HTTP_USER_AGENT} "Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101…
0
votes
1 answer
Java - Decorate PipedInputRead with InputStream never accomplished?
I'm building a shape processing system with PipedInputStream and PipedOutputStream. To be able to deal with object, I decorate the pipe with an ObjectStream. The problem is that when I try to add the ObjectInputStream on the input pipe, this step…
0
votes
2 answers
Are if statements blocking in node?
I often see this pattern:
request( 'https://www.apple.com/macbook/', function( err, result ) {
if ( err ) return res.( 500 ).send( "Error" )
mac = new Macs({
mac: result
})
mac.save()
})
This suggests the if statement can…

Noah
- 4,601
- 9
- 39
- 52
0
votes
1 answer
php cookies block access to directories
I have a mysql database of users that can login to my site and view content. I would like to block a couple of directories from certain users. What is the best way to do this.
Currently when a user logs in a cookie is created with their customer id…

user342391
- 7,569
- 23
- 66
- 88
0
votes
0 answers
Differences between various distributed computing primitives
I am trying to understand the primitive concepts of distributed computing from the book Distributed Computing - Principles, Algorithms and Systems by cambridge university press. I encounter an illustration which discuss the differences between…

Aarish Ramesh
- 6,745
- 15
- 60
- 105
0
votes
1 answer
DHTMLX Scheduler Block/Mark employee hours on Timeline?
I am using the Timeline in somewhat of an unconventional way. I have the typical day and week event/tasks working fine but I need an hour summary for the week. I cannot get marking/blocking to work for the life of me. The picture example on the…

triplethreat77
- 1,276
- 8
- 34
- 69
0
votes
1 answer
OpenDaylight controller clustering service, blocking or not?
I'm studying the ODL controller and get a question. In ODL clustering implementation, data are divided into shards which are replicate onto multiple controllers. So here is my question: when an application makes an update on a module's primary…

Zhang Tianzhu
- 1
- 2
0
votes
1 answer
WinSock C++ Console App Instant Messanger recv doesn't block
I have a question regarding WinSock library.
I'm trying to write simple instant messages program. I wrote it only for 2 clients, and now i would like to improve it, so It can work for many of them, and each client would sent an message with its…

reybanger
- 123
- 1
- 4
0
votes
1 answer
subprocess.call is not waiting
with open('pf_d.txt', 'w+') as outputfile:
rc = subprocess.call([pf, 'disable'], shell=True, stdout=outputfile, stderr=outputfile)
print outputfile.readlines()
output.readlines() is returning [] even though the file is written with…

Nick
- 1,692
- 3
- 21
- 35
0
votes
2 answers
SocketServer unblocks by reading 0 bytes
I am implementing a websocket server and I have an issue where rfile.read of the module SocketServer sporadically will unblock when reading 0 bytes. Most times this is fine, until I start making random requests back and forth.
Here is a snipper from…

Pithikos
- 18,827
- 15
- 113
- 136
0
votes
1 answer
Autohotkey check for Ctrl pressed error
I've only recently gotten back into using AHK after taking a break from it for a few years, so forgive me if there's a very easy answer for this.
I'm writing a script which tracks keypresses while control is held down, and then allows one of 9…

colsw
- 3,216
- 1
- 14
- 28
0
votes
2 answers
Unable to retrieve multiline data from qtcpsocket qt
I am writing a function to communicate with a test server that I didn't write. I send a command, and need to immediately capture the multi-line response before doing anything else. Of course, I'd like to not block my whole UI, which shouldn't be a…

Rachael
- 1,965
- 4
- 29
- 55
0
votes
1 answer
WebSocket Server with blocking writing operations
I am looking for a WebSocket Server API (for any platform and written on any language) with blocking writing operations.
All implementations I've seen so far just have async-io methods.
What I need is to have blocking send functions to know when the…

Silvia
- 269
- 2
- 5
- 17
0
votes
1 answer
WSO2 ESB Proxy blocking Request
im on WSO2 ESB 4.8.1.
I need to block some request if their path match a regular expression. So i've implemented this proxy and these sequences:
In my proxy:
…

Alex
- 1,515
- 2
- 22
- 44