Questions tagged [flush]

Flush means clearing all the buffers for a stream. This will cause any buffered data to be written to the underlying device.

Flush means clearing all the buffers for a stream. This will cause any buffered data to be written to the underlying device.

1132 questions
8
votes
2 answers

flush() doesn't work in Firefox 4

I noticed that the php flush(); doesn't work in Firefox 4 beta 7, as it works in 3.6.12. I recently installed firefox 4 beta 7, and the contents are not being flush immediately when flush() is called. It used to work fine in 3.6.12. Is there any…
Ctroy
  • 577
  • 1
  • 10
  • 20
8
votes
3 answers

PHP flush stopped flushing in IIS 8

Note: I know this looks like a duplicate of this question. I don't see how it is a duplicate. I already stated that I have checked that question, and I tried all the answers, but it didn't work. Here is what I tried: Under Dario's answer, I…
Zakir_SZH
  • 466
  • 7
  • 21
8
votes
1 answer

In bash, How can I force a flush of an incomplete line printed to the terminal

I'm writing a script which does something like the following: echo -n "Doing stuff, wait for it... " do_stuff (($?==0)) && echo SUCCESS || echo FAILURE Excuse the poor bash skills. Anyway, the problem is that the first part of the line doesn't get…
einpoklum
  • 118,144
  • 57
  • 340
  • 684
8
votes
2 answers

Is processor cache flushed during context switch in multicore?

Recently, I discussed why there is a volatile mark at seq in Java Actors demo @volatile private var seq = 0L private def nextSeq: Long = { val next = seq seq += 1 next } One answer was that threads can be migrated and variables lost (other…
Val
  • 1
  • 8
  • 40
  • 64
8
votes
1 answer

flush mode changed in grails from AUTO to MANUAL

After upgrading my Grails project from 1.3.7 to 2.4.0 and after fixing various issues related to the new grails version, I realized that none of the changes done to any object would be persisted anymore (at all) except if save(flush:true) is…
Andi Schweizer
  • 111
  • 1
  • 5
8
votes
1 answer

Python sys.stderr flush frequency

How often does sys.stderr flush its buffer, and is this standard among different environments? >>> import sys >>> sys.__stderr__ ', mode 'w' at 0x2b4fcb7ac270> I see that it is just a standard file type, but I don't know what…
Brian
  • 132
  • 1
  • 9
8
votes
6 answers

How to do "mysqladmin flush-hosts" on server?

I have a hosting account, on database section i have "MySQL® Databases", "MySQL® Database Wizard","phpMyAdmin" and "Remote MySQL" Options Error i am getting is Database ErrorHost 'adonis.havehost.com' is blocked because of many connection errors;…
Suman KC
  • 3,478
  • 4
  • 30
  • 42
8
votes
2 answers

Why does bash sometime not flush output of a python program to a file

I have a crontab job calling a python script and outputting to a file: python run.py &> current_date.log now sometimes when I do tail -f current_date.log I see the file filling up with the output, but other times the log file exists, but stays…
olamundo
  • 23,991
  • 34
  • 108
  • 149
8
votes
1 answer

What does ServletResponse#flushBuffer() cover?

If I call ServletResponse.flushBuffer(), do I need to call ServletResponse.getOutputStream().close() and/or ServletResponse.getOutputStream().flush() (same for ServletResponse.getWriter().close() and/or ServletResponse.getWriter().flush()) ?
sp00m
  • 47,968
  • 31
  • 142
  • 252
8
votes
2 answers

Magento "Flush Cache Storage"

I understand the difference between "Flush Magento Cache" and "Flush Cache Storage" in Magento (example). I'm trying to work on a cron job that will flush the cache storage from time to time. I'm assuming that this button doesn't just remove the…
Markie
  • 760
  • 17
  • 32
7
votes
2 answers

RavenDB how to flush?

I am using RavenDb embedded. As a part of my intergration tests I want to check objects are persisted. When I SaveChanges on an object, then retrieve it, it cannot be found unless I dispose my connection. This does not work for me, as no files are…
Dan Black
  • 1,167
  • 3
  • 14
  • 20
7
votes
1 answer

Grails addTo* clarification

I am following the example in Grails in Action. I have an issue understanding how the addTo*() function works. I have a simple domain: User, Post, Tag with the following relationships: User 1-to-M Post User 1-to-M Tag Post M-to-M Tag When I run…
Yassine Elouri
  • 111
  • 1
  • 4
7
votes
4 answers

Exception propagates after already caught

I'm having the strangest thing happening and I can't figure out why. The best way to describe this is to provide a simplistic example: @Service @Transactional public class Foo{ public ModelAndView delete(@ModelAttribute("abc") Long id) { …
user973479
  • 1,629
  • 5
  • 26
  • 48
7
votes
0 answers

"IOStream.flush timed out" errors when multithreading

I am new to Python programming and having a problem with a multithreaded program (using the "threading" module) that runs fine at the beginning, but after a while starts repeatedly printing "IOStream.flush timed out" errors. I am not even sure how…
Miguel
  • 91
  • 1
  • 3
7
votes
1 answer

Thread locking when flushing jsp file

Under heavy load I see lot of threads getting locked when GZipping and decompressing the JSP file. The thread dump looks like below. Seems to be coming from "header.jsp" which is of size 14Kb. http-0.0.0.0-8080-304" daemon prio=3…